Class AnnotationProcessor

java.lang.Object
org.cometd.annotation.AnnotationProcessor
Direct Known Subclasses:
ClientAnnotationProcessor, ServerAnnotationProcessor

public class AnnotationProcessor extends Object
Base class for common functionality in annotation processors
  • Constructor Details

    • AnnotationProcessor

      public AnnotationProcessor()
  • Method Details

    • processPostConstruct

      protected boolean processPostConstruct(Object bean)
    • processPreDestroy

      protected boolean processPreDestroy(Object bean)
    • findAnnotatedMethods

      protected List<Method> findAnnotatedMethods(Object bean, Class<? extends Annotation> annotationClass)
    • processParameters

      protected List<String> processParameters(Method method)
    • invokePrivate

      protected Object invokePrivate(Object bean, Method method, Object... args)
    • invokePublic

      protected static Object invokePublic(Object target, Method method, Object[] arguments) throws Throwable
      Throws:
      Throwable
    • callPublic

      protected static Object callPublic(Object target, Method method, Object... arguments)
    • getField

      protected Object getField(Object bean, Field field)
    • setField

      protected void setField(Object bean, Field field, Object value)
    • checkMethodsPublic

      protected static void checkMethodsPublic(Object bean, Class<? extends Annotation> annotationClass)
    • checkSignaturesMatch

      protected static void checkSignaturesMatch(Method method, Class<?>[] expectedTypes, List<String> paramNames)
    • processInjectables

      protected boolean processInjectables(Object bean, List<Object> injectables)
    • processInjectable

      protected boolean processInjectable(Object bean, Object injectable)