Constructor and Description |
---|
ErrorContext(java.lang.RuntimeException exn,
Context context) |
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.
|
Context |
getContext() |
java.lang.RuntimeException |
getException() |
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.
|
public ErrorContext(java.lang.RuntimeException exn, Context context)
public java.lang.RuntimeException getException()
public Context getContext()
public <T> T get(Contextual<T> bean)
Context
public <T> T get(Contextual<T> bean, CreationalContext<T> creationalContext)
Context
public java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
Context