com.amazon.carbonado.info
Class StorablePropertyAnnotation

java.lang.Object
  extended by com.amazon.carbonado.info.StorablePropertyAnnotation

public class StorablePropertyAnnotation
extends Object

Information about a custom annotation applied to a property.

Author:
Brian S O'Neill

Constructor Summary
StorablePropertyAnnotation(Annotation annotation, Method method)
          Use this constructor if an annotation was actually defined.
StorablePropertyAnnotation(Class<? extends Annotation> annotationType, Method method)
          Use this constructor if an annotation was not defined, but instead is being automatically applied.
 
Method Summary
 Method getAnnotatedMethod()
          Returns the method that has the annotation.
 Annotation getAnnotation()
          Returns the actual annotation instance, which may be null if annotation was automatically applied.
 Class<? extends Annotation> getAnnotationType()
          Returns the type of annotation that was applied to the property method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StorablePropertyAnnotation

public StorablePropertyAnnotation(Annotation annotation,
                                  Method method)
Use this constructor if an annotation was actually defined.

Parameters:
annotation - annotation on method
method - method with annotation

StorablePropertyAnnotation

public StorablePropertyAnnotation(Class<? extends Annotation> annotationType,
                                  Method method)
Use this constructor if an annotation was not defined, but instead is being automatically applied.

Parameters:
annotationType - annotation type on method
method - method with annotation
Method Detail

getAnnotation

public Annotation getAnnotation()
Returns the actual annotation instance, which may be null if annotation was automatically applied.


getAnnotationType

public Class<? extends Annotation> getAnnotationType()
Returns the type of annotation that was applied to the property method.


getAnnotatedMethod

public Method getAnnotatedMethod()
Returns the method that has the annotation.



Copyright © 2006-2009 Amazon Technologies, Inc.. All Rights Reserved.