public abstract class AbstractAnnotationValues extends Object
| Modifier and Type | Field and Description |
|---|---|
protected AnnotationMetadata |
annotationMetadata |
protected boolean |
classParsed
Indicates whether the class was able to be parsed at all (ie the metadata
was properly formed)
|
protected ClassOrInterfaceTypeDetails |
governorTypeDetails |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAnnotationValues(MemberHoldingTypeDetails memberHoldingTypeDetails,
org.springframework.roo.model.JavaType annotationType) |
protected |
AbstractAnnotationValues(MemberHoldingTypeDetailsMetadataItem<?> governorMetadata,
Class<?> annotationType)
Convenience constructor that takes a
Class for the annotation
type |
protected |
AbstractAnnotationValues(MemberHoldingTypeDetailsMetadataItem<?> governorMetadata,
org.springframework.roo.model.JavaType annotationType)
Parses the governor's metadata for the requested annotation
JavaType. |
| Modifier and Type | Method and Description |
|---|---|
ClassOrInterfaceTypeDetails |
getGovernorTypeDetails() |
boolean |
isAnnotationFound() |
boolean |
isClassParsed() |
protected AnnotationMetadata annotationMetadata
protected boolean classParsed
protected ClassOrInterfaceTypeDetails governorTypeDetails
protected AbstractAnnotationValues(MemberHoldingTypeDetails memberHoldingTypeDetails, org.springframework.roo.model.JavaType annotationType)
protected AbstractAnnotationValues(MemberHoldingTypeDetailsMetadataItem<?> governorMetadata, Class<?> annotationType)
Class for the annotation
typegovernorMetadata - to parse (can be null)annotationType - the annotation class (required)protected AbstractAnnotationValues(MemberHoldingTypeDetailsMetadataItem<?> governorMetadata, org.springframework.roo.model.JavaType annotationType)
JavaType. If found, makes the annotation available via the
annotationMetadata field. Subclasses will then generally use
AutoPopulationUtils.populate(Object, AnnotationMetadata) to
complete the configuration of the subclass (we don't invoke
AutoPopulationUtils from this constructor because the subclass is
likely to have set default values for each field, and these will be
overwritten when the control flow returns to the subclass constructor).
If the PhysicalTypeMetadata cannot be parsed or does not
internally contain a ClassOrInterfaceTypeDetails, no attempt will
be made to populate the values.
governorMetadata - to parse (can be null)annotationType - to locate and parse (can be null)public ClassOrInterfaceTypeDetails getGovernorTypeDetails()
public boolean isAnnotationFound()
public boolean isClassParsed()
Copyright © 2009–2016. All rights reserved.