public class TransactionScopedBean<T> extends Object implements Synchronization
TransactionScoped beans. We need
this wrapper so that the contextual instance can be destroyed when the transaction completes.| Constructor and Description |
|---|
TransactionScopedBean(javax.enterprise.context.spi.Contextual<T> contextual,
javax.enterprise.context.spi.CreationalContext<T> creationalContext,
TransactionScopedContextImpl transactionScopedContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterCompletion(int i)
Destroy the contextual instance.
|
void |
beforeCompletion() |
T |
getContextualInstance() |
public TransactionScopedBean(javax.enterprise.context.spi.Contextual<T> contextual, javax.enterprise.context.spi.CreationalContext<T> creationalContext, TransactionScopedContextImpl transactionScopedContext)
public T getContextualInstance()
public void beforeCompletion()
beforeCompletion in interface Synchronizationpublic void afterCompletion(int i)
afterCompletion in interface SynchronizationCopyright © 2019. All rights reserved.