public final class BeanTypeAnnotationProcessor
extends java.lang.Object
RegistryObjectModel
instance.Modifier and Type | Method and Description |
---|---|
void |
addAnnnotationProcessor(java.lang.Class<?> annotationType,
PropertyAnnotationProcessor annotationProcessor)
Adds a
PropertyAnnotationProcessor instance to the default processors. |
static BeanTypeAnnotationProcessor |
getInstance()
Returns the default
BeanTypeAnnotationProcessor . |
Property |
getProperty(java.lang.Class<? extends RegistryBean> persistentClass,
java.lang.reflect.Method getter,
java.util.List<java.lang.annotation.Annotation> annotations,
BeanType beanType)
Returns the
Property with the given name. |
void |
processClass(java.lang.Class<? extends RegistryBean> persistentClass,
RegistryObjectModel model)
Processes all CSAF annotations on type and method level for the given
persistent class.
|
public static BeanTypeAnnotationProcessor getInstance()
BeanTypeAnnotationProcessor
.BeanTypeAnnotationProcessor
instance.public void addAnnnotationProcessor(java.lang.Class<?> annotationType, PropertyAnnotationProcessor annotationProcessor)
PropertyAnnotationProcessor
instance to the default processors.annotationType
- Type of annotation. May be custom defined type.annotationProcessor
- the PropertyAnnotationProcessor
instance.public void processClass(java.lang.Class<? extends RegistryBean> persistentClass, RegistryObjectModel model) throws CSAppFrameworkException
persistentClass
- Annotated java bean class containing mapping information.model
- Registry object model that the given persistent class belongs
to.CSAppFrameworkException
- if encounters an internal error.public Property getProperty(java.lang.Class<? extends RegistryBean> persistentClass, java.lang.reflect.Method getter, java.util.List<java.lang.annotation.Annotation> annotations, BeanType beanType)
Property
with the given name.persistentClass
- Annotated java bean class containing mapping information.getter
- The method having the annotation.annotations
- CSAF mapping annotation like Slot
, Association
etc.beanType
- The root bean type to search for the property.Property
with the given name and null if not found.