org.apache.tomee.common
Class LegacyAnnotationProcessor

java.lang.Object
  extended by org.apache.tomee.common.LegacyAnnotationProcessor

public class LegacyAnnotationProcessor
extends Object


Field Summary
protected  Context context
           
 
Constructor Summary
LegacyAnnotationProcessor(Context context)
           
 
Method Summary
protected static void lookupFieldResource(Context context, Object instance, Field field, String name, Class<?> clazz)
          Inject resources in specified field.
protected static void lookupMethodResource(Context context, Object instance, Method method, String name, Class<?> clazz)
          Inject resources in specified method.
 void postConstruct(Object instance)
          Call postConstruct method on the specified instance.
 void preDestroy(Object instance)
          Call preDestroy method on the specified instance.
 void processAnnotations(Object instance)
          Inject resources in specified instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected Context context
Constructor Detail

LegacyAnnotationProcessor

public LegacyAnnotationProcessor(Context context)
Method Detail

postConstruct

public void postConstruct(Object instance)
                   throws IllegalAccessException,
                          InvocationTargetException
Call postConstruct method on the specified instance.

Throws:
IllegalAccessException
InvocationTargetException

preDestroy

public void preDestroy(Object instance)
                throws IllegalAccessException,
                       InvocationTargetException
Call preDestroy method on the specified instance.

Throws:
IllegalAccessException
InvocationTargetException

processAnnotations

public void processAnnotations(Object instance)
                        throws IllegalAccessException,
                               InvocationTargetException,
                               NamingException
Inject resources in specified instance.

Throws:
IllegalAccessException
InvocationTargetException
NamingException

lookupFieldResource

protected static void lookupFieldResource(Context context,
                                          Object instance,
                                          Field field,
                                          String name,
                                          Class<?> clazz)
                                   throws NamingException,
                                          IllegalAccessException
Inject resources in specified field.

Throws:
NamingException
IllegalAccessException

lookupMethodResource

protected static void lookupMethodResource(Context context,
                                           Object instance,
                                           Method method,
                                           String name,
                                           Class<?> clazz)
                                    throws NamingException,
                                           IllegalAccessException,
                                           InvocationTargetException
Inject resources in specified method.

Throws:
NamingException
IllegalAccessException
InvocationTargetException


Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.