| Constructor and Description |
|---|
DependentContext() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(Contextual<T> bean)
Returns a instance of a bean, creating if the bean is not already
available in the context.
|
<T> T |
get(Contextual<T> bean,
CreationalContext<T> creationalContext)
Internal SPI method to create a new instance of a bean, when given
a creational context.
|
java.lang.Class<? extends java.lang.annotation.Annotation> |
getScope()
Returns the @ScopeType corresponding to the current context.
|
boolean |
isActive()
Returns true if the scope is currently active.
|
java.lang.String |
toString() |
public <T> T get(Contextual<T> bean)
Contextpublic <T> T get(Contextual<T> bean, CreationalContext<T> creationalContext)
Contextpublic java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
Contextpublic boolean isActive()
Contextpublic java.lang.String toString()
toString in class java.lang.Object