Class ForwardingProperty

java.lang.Object
org.yaml.snakeyaml.introspector.Property
org.apache.cassandra.config.ForwardingProperty
All Implemented Interfaces:
Comparable<org.yaml.snakeyaml.introspector.Property>

public class ForwardingProperty extends org.yaml.snakeyaml.introspector.Property
This class delegates all calls of Property to a delegate(), used for cases where a small number of methods want to be overriden from the delegate. This class acts as a decorator to a Property and allows decorating any method.
  • Constructor Details

    • ForwardingProperty

      public ForwardingProperty(String name, org.yaml.snakeyaml.introspector.Property property)
    • ForwardingProperty

      public ForwardingProperty(String name, Class<?> type, org.yaml.snakeyaml.introspector.Property property)
  • Method Details

    • delegate

      protected org.yaml.snakeyaml.introspector.Property delegate()
    • isWritable

      public boolean isWritable()
      Overrides:
      isWritable in class org.yaml.snakeyaml.introspector.Property
    • isReadable

      public boolean isReadable()
      Overrides:
      isReadable in class org.yaml.snakeyaml.introspector.Property
    • getActualTypeArguments

      public Class<?>[] getActualTypeArguments()
      Specified by:
      getActualTypeArguments in class org.yaml.snakeyaml.introspector.Property
    • set

      public void set(Object o, Object o1) throws Exception
      Specified by:
      set in class org.yaml.snakeyaml.introspector.Property
      Throws:
      Exception
    • get

      public Object get(Object o)
      Specified by:
      get in class org.yaml.snakeyaml.introspector.Property
    • getAnnotations

      public List<Annotation> getAnnotations()
      Specified by:
      getAnnotations in class org.yaml.snakeyaml.introspector.Property
    • getAnnotation

      public <A extends Annotation> A getAnnotation(Class<A> aClass)
      Specified by:
      getAnnotation in class org.yaml.snakeyaml.introspector.Property