Package org.cometd.annotation
Class AnnotationProcessor
java.lang.Object
org.cometd.annotation.AnnotationProcessor
public class AnnotationProcessor extends Object
Base class for common functionality in annotation processors
-
Field Summary
Fields Modifier and Type Field Description protected org.slf4j.Loggerlogger -
Constructor Summary
Constructors Constructor Description AnnotationProcessor() -
Method Summary
Modifier and Type Method Description protected 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)protected List<Method>findAnnotatedMethods(Object bean, Class<? extends Annotation> annotationClass)protected ObjectgetField(Object bean, Field field)protected 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)protected List<String>processParameters(Method method)protected booleanprocessPostConstruct(Object bean)protected booleanprocessPreDestroy(Object bean)protected voidsetField(Object bean, Field field, Object value)
-
Field Details
-
logger
protected final org.slf4j.Logger logger
-
-
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
-