org.apache.geronimo.j2ee.annotation
Class Holder
java.lang.Object
org.apache.geronimo.j2ee.annotation.Holder
- All Implemented Interfaces:
- Serializable
public class Holder
- extends Object
- implements Serializable
- See Also:
- Serialized Form
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 |
EMPTY
public static final Holder EMPTY
Holder
public Holder()
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.