Package io.jans.orm.reflect.property
Class BasicPropertyAnnotationResolver
java.lang.Object
io.jans.orm.reflect.property.BasicPropertyAnnotationResolver
- All Implemented Interfaces:
PropertyAnnotationResolver
Defines a strategy for accessing class and propery annotations.
- Author:
- Yuriy Movchan Date: 10.08.2010
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetClassAnnotations(Class<?> theClass, Class<?>... allowedAnnotations) Get list of class annotationsgetPropertiesAnnotations(Class<?> theClass, Class<?>... allowedAnnotations) Get map of properties annotationsgetPropertyAnnotations(Class<?> theClass, String propertyName, Class<?>... allowedAnnotations) Get list of property annotations
-
Constructor Details
-
BasicPropertyAnnotationResolver
public BasicPropertyAnnotationResolver()
-
-
Method Details
-
getClassAnnotations
Description copied from interface:PropertyAnnotationResolverGet list of class annotations- Specified by:
getClassAnnotationsin interfacePropertyAnnotationResolver
-
getPropertyAnnotations
public List<Annotation> getPropertyAnnotations(Class<?> theClass, String propertyName, Class<?>... allowedAnnotations) throws PropertyNotFoundException Description copied from interface:PropertyAnnotationResolverGet list of property annotations- Specified by:
getPropertyAnnotationsin interfacePropertyAnnotationResolver- Throws:
PropertyNotFoundException
-
getPropertiesAnnotations
public Map<String,List<Annotation>> getPropertiesAnnotations(Class<?> theClass, Class<?>... allowedAnnotations) Description copied from interface:PropertyAnnotationResolverGet map of properties annotations- Specified by:
getPropertiesAnnotationsin interfacePropertyAnnotationResolver
-