T - public class NonContextual<T> extends Object
| Modifier and Type | Method | Description |
|---|---|---|
void |
inject(T instance) |
Injects the instance
|
static <T> NonContextual<T> |
of(Class<? extends T> clazz) |
Factory method for creating non-contextual instances
|
static <T> NonContextual<T> |
of(T t) |
Convenience factory method for an instance, see {@link #of(Class).
|
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 the looked up bean manager from cache
|
public static void undeploy()
public static <T> NonContextual<T> of(T t)
T - clazz - public static <T> NonContextual<T> of(Class<? extends T> clazz)
T - clazz - 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–2018 Apache Software Foundation. All rights reserved.