|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.config.scope.AbstractScopeContext
@Module public abstract class AbstractScopeContext
Context for a named EL bean scope
| Field Summary | |
|---|---|
static L10N |
L
|
| Constructor Summary | |
|---|---|
AbstractScopeContext()
|
|
| Method Summary | ||
|---|---|---|
void |
closeContext()
|
|
protected
|
create(Contextual<T> bean,
CreationalContext<T> env)
|
|
protected abstract ContextContainer |
createContextContainer()
|
|
|
get(Contextual<T> bean)
Returns the current instance, if it exists. |
|
|
get(Contextual<T> bean,
CreationalContext<T> creationalContext)
Internal SPI method to create a new instance of a bean, when given a creational context. |
|
protected abstract ContextContainer |
getContextContainer()
|
|
abstract java.lang.Class<? extends java.lang.annotation.Annotation> |
getScope()
Returns the scope annotation type. |
|
abstract 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 |
| Field Detail |
|---|
public static final L10N L
| Constructor Detail |
|---|
public AbstractScopeContext()
| Method Detail |
|---|
public abstract boolean isActive()
isActive in interface Contextpublic abstract java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
getScope in interface Contextpublic <T> T get(Contextual<T> bean)
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
protected <T> T create(Contextual<T> bean,
CreationalContext<T> env)
protected abstract ContextContainer getContextContainer()
protected abstract ContextContainer createContextContainer()
public void closeContext()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||