@Module public abstract class AbstractScopeContext extends java.lang.Object implements Context
Constructor and Description |
---|
AbstractScopeContext() |
Modifier and Type | Method and Description |
---|---|
void |
closeContext() |
protected <T> T |
create(Contextual<T> bean,
CreationalContext<T> env) |
protected abstract ContextContainer |
createContextContainer() |
<T> T |
get(Contextual<T> bean)
Returns the current instance, if it exists.
|
<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.
|
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.
|
public static final L10N L
public abstract boolean isActive()
public abstract java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
public <T> T get(Contextual<T> bean)
public <T> T get(Contextual<T> bean, CreationalContext<T> creationalContext)
Context
protected <T> T create(Contextual<T> bean, CreationalContext<T> env)
protected abstract ContextContainer getContextContainer()
protected abstract ContextContainer createContextContainer()
public void closeContext()