public class DependentContextImpl extends Object implements DependentContext
| Constructor and Description |
|---|
DependentContextImpl(ContextualStore contextualStore) |
| Modifier and Type | Method and Description |
|---|---|
protected <T> void |
addDependentInstance(T instance,
Contextual<T> contextual,
WeldCreationalContext<T> creationalContext) |
void |
destroy(Contextual<?> contextual)
Destroy the existing contextual instance.
|
<T> T |
get(Contextual<T> contextual)
Return an existing instance of a certain contextual type or a null value.
|
<T> T |
get(Contextual<T> contextual,
CreationalContext<T> creationalContext)
Overridden method always creating a new instance
|
Class<? extends Annotation> |
getScope()
Get the scope type of the context object.
|
boolean |
isActive()
Determines if the context object is active.
|
public DependentContextImpl(ContextualStore contextualStore)
public <T> T get(Contextual<T> contextual, CreationalContext<T> creationalContext)
protected <T> void addDependentInstance(T instance,
Contextual<T> contextual,
WeldCreationalContext<T> creationalContext)
public <T> T get(Contextual<T> contextual)
Contextpublic boolean isActive()
Contextpublic Class<? extends Annotation> getScope()
Contextpublic void destroy(Contextual<?> contextual)
AlterableContextDestroy the existing contextual instance. If there is no existing instance, no action is taken.
destroy in interface AlterableContextcontextual - the contextual typeCopyright © 2014. All Rights Reserved.