|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Context
The contract between the manager and a contextual object. This interface should not be called directly by the application.
Method Summary | ||
---|---|---|
|
get(Contextual<T> contextual)
Return an existing instance of a contextual type or create a new instance of a contextual type |
|
|
get(Contextual<T> contextual,
CreationalContext<T> creationalContext)
Return an existing instance of a contextual type or create a new instance of a contextual type |
|
java.lang.Class<? extends java.lang.annotation.Annotation> |
getScopeType()
The scope which this context implements |
|
boolean |
isActive()
The context is only active at certain points in the application lifecycle |
Method Detail |
---|
java.lang.Class<? extends java.lang.annotation.Annotation> getScopeType()
<T> T get(Contextual<T> contextual, CreationalContext<T> creationalContext)
T
- the type of contextual typecontextual
- the contextual typecreationalContext
- the creational context in which incompletely
initialized instances may be placed
ContextNotActiveException
- if the context is not active<T> T get(Contextual<T> contextual)
T
- the type of the contextual typecontextual
- the contextual type
ContextNotActiveException
- if the context is not activeboolean isActive()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |