Package org.cometd.annotation
Class AnnotationProcessor
java.lang.Object
org.cometd.annotation.AnnotationProcessor
Base class for common functionality in annotation processors
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static ObjectcallPublic(Object target, Method method, Object... arguments) protected static voidcheckMethodsPublic(Object bean, Class<? extends Annotation> annotationClass) protected static voidcheckSignaturesMatch(Method method, Class<?>[] expectedTypes, List<String> paramNames) findAnnotatedMethods(Object bean, Class<? extends Annotation> annotationClass) protected Objectprotected ObjectinvokePrivate(Object bean, Method method, Object... args) protected static ObjectinvokePublic(Object target, Method method, Object[] arguments) protected booleanprocessInjectable(Object bean, Object injectable) protected booleanprocessInjectables(Object bean, List<Object> injectables) processParameters(Method method) protected booleanprocessPostConstruct(Object bean) protected booleanprocessPreDestroy(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
protected static Object invokePublic(Object target, Method method, Object[] arguments) throws Throwable - Throws:
Throwable
-
callPublic
-
getField
-
setField
-
checkMethodsPublic
-
checkSignaturesMatch
-
processInjectables
-
processInjectable
-