|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.softwareag.centrasite.appl.framework.persistence.mapper.MappingUtils
public class MappingUtils
Helper class for mappings.
Nested Class Summary | |
---|---|
static interface |
MappingUtils.AnnotationFilter
This interface allows to select annotations out of a complete set. |
Constructor Summary | |
---|---|
MappingUtils()
|
Method Summary | ||
---|---|---|
static java.lang.Class<RegistryBean> |
asRegistryBeanClass(java.lang.Class<?> pClass)
|
|
static
|
getAnnotation(java.lang.Class<?> beanClass,
java.lang.Class<T> annotationType)
Retrieves annotation with given annotation type by traversing over all the interfaces of the bean. |
|
static java.lang.annotation.Annotation |
getAnnotation(RegistryBean bean,
java.lang.reflect.Method getter)
Filters the annotations by package and return the first one that matches. |
|
static
|
getAnnotationFromHierarchy(java.lang.Class<?> beanClass,
java.lang.Class<T> annotationType)
Retrieves annotation with given annotation type by traversing over all the interfaces in the class hierarchy. |
|
static java.util.List<java.lang.annotation.Annotation> |
getAnnotations(java.lang.Class<?> pClass,
java.lang.reflect.Method pMethod,
MappingUtils.AnnotationFilter pFilter)
Searches for annotations on the given method, which match the given filter. |
|
static java.util.List<java.lang.annotation.Annotation> |
getAnnotations(RegistryBean bean,
java.lang.reflect.Method method)
Retrieves annotations assigned to a method of a bean by traversing all its interfaces. |
|
static java.lang.Class<?> |
getBeanInterface(java.lang.Class<?> pClass)
Returns the first java interface class from the given class hierarchy that has the Bean annotation. |
|
static java.util.List<java.lang.annotation.Annotation> |
getJAXRAnnotations(java.lang.Class<?> beanType,
java.lang.reflect.Method method)
Retrieves annotations assigned to a method of a bean type by traversing all its interfaces and filtering on package name. |
|
static java.util.List<java.lang.annotation.Annotation> |
getJAXRAnnotations(RegistryBean bean,
java.lang.reflect.Method method)
Retrieves annotations assigned to a method of a bean by traversing all its interfaces and filtering on package name. |
|
static boolean |
isJAXRAnnotation(java.lang.annotation.Annotation a)
Helper method for checking if an annotation belongs the the JAXR annotations set. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MappingUtils()
Method Detail |
---|
public static boolean isJAXRAnnotation(java.lang.annotation.Annotation a)
public static <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<?> beanClass, java.lang.Class<T> annotationType)
public static <T extends java.lang.annotation.Annotation> T getAnnotationFromHierarchy(java.lang.Class<?> beanClass, java.lang.Class<T> annotationType)
public static java.lang.Class<?> getBeanInterface(java.lang.Class<?> pClass)
Bean
annotation.
pClass
-
Class
public static java.lang.annotation.Annotation getAnnotation(RegistryBean bean, java.lang.reflect.Method getter)
public static java.util.List<java.lang.annotation.Annotation> getAnnotations(RegistryBean bean, java.lang.reflect.Method method)
public static java.util.List<java.lang.annotation.Annotation> getJAXRAnnotations(RegistryBean bean, java.lang.reflect.Method method)
public static java.util.List<java.lang.annotation.Annotation> getJAXRAnnotations(java.lang.Class<?> beanType, java.lang.reflect.Method method)
public static java.util.List<java.lang.annotation.Annotation> getAnnotations(java.lang.Class<?> pClass, java.lang.reflect.Method pMethod, MappingUtils.AnnotationFilter pFilter)
public static java.lang.Class<RegistryBean> asRegistryBeanClass(java.lang.Class<?> pClass)
pClass
-
Class
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |