|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.config.scope.ErrorContext
@Module public class ErrorContext
Context to wrap errors.
| Constructor Summary | |
|---|---|
ErrorContext(java.lang.RuntimeException exn,
Context context)
|
|
| Method Summary | ||
|---|---|---|
|
get(Contextual<T> bean)
Returns a instance of a bean, creating if the bean is not already available in the context. |
|
|
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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ErrorContext(java.lang.RuntimeException exn,
Context context)
| Method Detail |
|---|
public java.lang.RuntimeException getException()
public Context getContext()
public <T> T get(Contextual<T> bean)
Context
get in interface Contextbean - the Bean type to be created
public <T> T get(Contextual<T> bean,
CreationalContext<T> creationalContext)
Context
get in interface Contextbean - the Bean type to be createdcreationalContext - - temporary context used for managing
circular references
public java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
Context
getScope in interface Contextpublic boolean isActive()
Context
isActive in interface Context
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||