org.apache.openejb.tomcat.naming
Class LegacyAnnotationProcessor

java.lang.Object
  extended by org.apache.openejb.tomcat.naming.LegacyAnnotationProcessor

public class LegacyAnnotationProcessor
extends java.lang.Object


Field Summary
protected  javax.naming.Context context
           
 
Constructor Summary
LegacyAnnotationProcessor(javax.naming.Context context)
           
 
Method Summary
protected static void lookupFieldResource(javax.naming.Context context, java.lang.Object instance, java.lang.reflect.Field field, java.lang.String name)
          Inject resources in specified field.
protected static void lookupMethodResource(javax.naming.Context context, java.lang.Object instance, java.lang.reflect.Method method, java.lang.String name)
          Inject resources in specified method.
 void postConstruct(java.lang.Object instance)
          Call postConstruct method on the specified instance.
 void preDestroy(java.lang.Object instance)
          Call preDestroy method on the specified instance.
 void processAnnotations(java.lang.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 javax.naming.Context context
Constructor Detail

LegacyAnnotationProcessor

public LegacyAnnotationProcessor(javax.naming.Context context)
Method Detail

postConstruct

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

Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException

preDestroy

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

Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException

processAnnotations

public void processAnnotations(java.lang.Object instance)
                        throws java.lang.IllegalAccessException,
                               java.lang.reflect.InvocationTargetException,
                               javax.naming.NamingException
Inject resources in specified instance.

Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
javax.naming.NamingException

lookupFieldResource

protected static void lookupFieldResource(javax.naming.Context context,
                                          java.lang.Object instance,
                                          java.lang.reflect.Field field,
                                          java.lang.String name)
                                   throws javax.naming.NamingException,
                                          java.lang.IllegalAccessException
Inject resources in specified field.

Throws:
javax.naming.NamingException
java.lang.IllegalAccessException

lookupMethodResource

protected static void lookupMethodResource(javax.naming.Context context,
                                           java.lang.Object instance,
                                           java.lang.reflect.Method method,
                                           java.lang.String name)
                                    throws javax.naming.NamingException,
                                           java.lang.IllegalAccessException,
                                           java.lang.reflect.InvocationTargetException
Inject resources in specified method.

Throws:
javax.naming.NamingException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException


Copyright © 1999-2008 The Apache OpenEJB development community. All Rights Reserved.