Package org.cometd.annotation
Class AnnotationProcessor
- java.lang.Object
-
- org.cometd.annotation.AnnotationProcessor
-
- Direct Known Subclasses:
ClientAnnotationProcessor
,ServerAnnotationProcessor
public class AnnotationProcessor extends java.lang.Object
Base class for common functionality in annotation processors
-
-
Constructor Summary
Constructors Constructor Description AnnotationProcessor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static java.lang.Object
callPublic(java.lang.Object target, java.lang.reflect.Method method, java.lang.Object... arguments)
protected static void
checkMethodsPublic(java.lang.Object bean, java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
protected static void
checkSignaturesMatch(java.lang.reflect.Method method, java.lang.Class<?>[] expectedTypes, java.util.List<java.lang.String> paramNames)
protected java.util.List<java.lang.reflect.Method>
findAnnotatedMethods(java.lang.Object bean, java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
protected java.lang.Object
getField(java.lang.Object bean, java.lang.reflect.Field field)
protected java.lang.Object
invokePrivate(java.lang.Object bean, java.lang.reflect.Method method, java.lang.Object... args)
protected static java.lang.Object
invokePublic(java.lang.Object target, java.lang.reflect.Method method, java.lang.Object[] arguments)
protected boolean
processInjectable(java.lang.Object bean, java.lang.Object injectable)
protected boolean
processInjectables(java.lang.Object bean, java.util.List<java.lang.Object> injectables)
protected java.util.List<java.lang.String>
processParameters(java.lang.reflect.Method method)
protected boolean
processPostConstruct(java.lang.Object bean)
protected boolean
processPreDestroy(java.lang.Object bean)
protected void
setField(java.lang.Object bean, java.lang.reflect.Field field, java.lang.Object value)
-
-
-
Method Detail
-
processPostConstruct
protected boolean processPostConstruct(java.lang.Object bean)
-
processPreDestroy
protected boolean processPreDestroy(java.lang.Object bean)
-
findAnnotatedMethods
protected java.util.List<java.lang.reflect.Method> findAnnotatedMethods(java.lang.Object bean, java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
-
processParameters
protected java.util.List<java.lang.String> processParameters(java.lang.reflect.Method method)
-
invokePrivate
protected java.lang.Object invokePrivate(java.lang.Object bean, java.lang.reflect.Method method, java.lang.Object... args)
-
invokePublic
protected static java.lang.Object invokePublic(java.lang.Object target, java.lang.reflect.Method method, java.lang.Object[] arguments) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
callPublic
protected static java.lang.Object callPublic(java.lang.Object target, java.lang.reflect.Method method, java.lang.Object... arguments)
-
getField
protected java.lang.Object getField(java.lang.Object bean, java.lang.reflect.Field field)
-
setField
protected void setField(java.lang.Object bean, java.lang.reflect.Field field, java.lang.Object value)
-
checkMethodsPublic
protected static void checkMethodsPublic(java.lang.Object bean, java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
-
checkSignaturesMatch
protected static void checkSignaturesMatch(java.lang.reflect.Method method, java.lang.Class<?>[] expectedTypes, java.util.List<java.lang.String> paramNames)
-
processInjectables
protected boolean processInjectables(java.lang.Object bean, java.util.List<java.lang.Object> injectables)
-
processInjectable
protected boolean processInjectable(java.lang.Object bean, java.lang.Object injectable)
-
-