org.apache.geronimo.j2ee.annotation
Class Holder

java.lang.Object
  extended by org.apache.geronimo.j2ee.annotation.Holder
All Implemented Interfaces:
Serializable

public class Holder
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
static Holder EMPTY
           
 
Constructor Summary
Holder()
           
 
Method Summary
 void addInjection(String className, Injection injection)
           
 void addPostConstructs(Map<String,LifecycleMethod> newPostConstructs)
           
 void addPreDestroys(Map<String,LifecycleMethod> newPreDestroys)
           
static void apply(Object o, Class clazz, Map<String,LifecycleMethod> map)
           
 void destroyInstance(Object o)
           
 List<Injection> getInjections(String className)
           
 Map<String,LifecycleMethod> getPostConstruct()
           
 Map<String,LifecycleMethod> getPreDestroy()
           
 boolean isEmpty()
           
 Object newInstance(String className, ClassLoader classLoader, Context context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY

public static final Holder EMPTY
Constructor Detail

Holder

public Holder()
Method Detail

addInjection

public void addInjection(String className,
                         Injection injection)

addPostConstructs

public void addPostConstructs(Map<String,LifecycleMethod> newPostConstructs)

addPreDestroys

public void addPreDestroys(Map<String,LifecycleMethod> newPreDestroys)

getInjections

public List<Injection> getInjections(String className)

getPostConstruct

public Map<String,LifecycleMethod> getPostConstruct()

getPreDestroy

public Map<String,LifecycleMethod> getPreDestroy()

isEmpty

public boolean isEmpty()

newInstance

public Object newInstance(String className,
                          ClassLoader classLoader,
                          Context context)
                   throws IllegalAccessException,
                          InstantiationException
Throws:
IllegalAccessException
InstantiationException

destroyInstance

public void destroyInstance(Object o)
                     throws Exception
Throws:
Exception

apply

public static void apply(Object o,
                         Class clazz,
                         Map<String,LifecycleMethod> map)
                  throws IllegalAccessException,
                         InvocationTargetException
Throws:
IllegalAccessException
InvocationTargetException


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.