@Module public class TransactionScope extends AbstractScopeContext
Constructor and Description |
---|
TransactionScope() |
Modifier and Type | Method and Description |
---|---|
protected ContextContainer |
createContextContainer() |
<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 ContextContainer |
getContextContainer() |
java.lang.Class<? extends java.lang.annotation.Annotation> |
getScope()
Returns the scope annotation type.
|
boolean |
isActive()
Returns true if the scope is currently active.
|
closeContext, create, get
public boolean isActive()
isActive
in interface Context
isActive
in class AbstractScopeContext
public java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
getScope
in interface Context
getScope
in class AbstractScopeContext
protected ContextContainer getContextContainer()
getContextContainer
in class AbstractScopeContext
protected ContextContainer createContextContainer()
createContextContainer
in class AbstractScopeContext
public <T> T get(Contextual<T> bean, CreationalContext<T> creationalContext)
Context
get
in interface Context
get
in class AbstractScopeContext
bean
- the Bean type to be createdcreationalContext
- - temporary context used for managing
circular references