T - public class NonContextual<T> extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
inject(T instance)
Injects the instance
|
static <T> NonContextual<T> |
of(Class<? extends T> clazz)
Factory method for creating noncontextual instances
|
void |
postConstruct(T instance)
Injects the instance and calls any
PostConstruct methods |
void |
preDestroy(T instance)
Calls any
PreDestroy methods and destroys any injected
dependencies that need to be destroyed. |
static void |
undeploy()
Undeploys specified bean manager from cache
|
public static void undeploy()
beanManager - public static <T> NonContextual<T> of(Class<? extends T> clazz)
T - clazz - manager - public void postConstruct(T instance)
PostConstruct methodsinstance - public void inject(T instance)
instance - public void preDestroy(T instance)
PreDestroy methods and destroys any injected
dependencies that need to be destroyed.instance - Copyright © 2006–2014 Apache Software Foundation. All rights reserved.