Class AnnotationProcessor
java.lang.Object
org.cometd.annotation.AnnotationProcessor
- Direct Known Subclasses:
ClientAnnotationProcessor
,ServerAnnotationProcessor
Base class for common functionality in annotation processors
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static Object
callPublic
(Object target, Method method, Object... arguments) protected static void
checkMethodsPublic
(Object bean, Class<? extends Annotation> annotationClass) protected static void
checkSignaturesMatch
(Method method, Class<?>[] expectedTypes, List<String> paramNames) findAnnotatedMethods
(Object bean, Class<? extends Annotation> annotationClass) protected Object
protected Object
invokePrivate
(Object bean, Method method, Object... args) protected static Object
invokePublic
(Object target, Method method, Object[] arguments) protected boolean
processInjectable
(Object bean, Object injectable) protected boolean
processInjectables
(Object bean, List<Object> injectables) processParameters
(Method method) protected boolean
processPostConstruct
(Object bean) protected boolean
processPreDestroy
(Object bean) protected void
-
Constructor Details
-
AnnotationProcessor
public AnnotationProcessor()
-
-
Method Details
-
processPostConstruct
-
processPreDestroy
-
findAnnotatedMethods
protected List<Method> findAnnotatedMethods(Object bean, Class<? extends Annotation> annotationClass) -
processParameters
-
invokePrivate
-
invokePublic
-
callPublic
-
getField
-
setField
-
checkMethodsPublic
-
checkSignaturesMatch
-
processInjectables
-
processInjectable
-