org.jboss.seam.transaction.scope
Class TransactionScopeContext

java.lang.Object
  extended by org.jboss.seam.transaction.scope.TransactionScopeContext
All Implemented Interfaces:
Context, Synchronization

public class TransactionScopeContext
extends Object
implements Context, Synchronization

Context for the TransactionScoped scope

Author:
stuart

Constructor Summary
TransactionScopeContext(BeanManager beanManager)
           
 
Method Summary
 void afterCompletion(int status)
          the transaction is done, destory the beans
 void beforeCompletion()
           
<T> T
get(Contextual<T> contextual)
           
<T> T
get(Contextual<T> contextual, CreationalContext<T> creationalContext)
           
 Class<? extends Annotation> getScope()
           
 boolean isActive()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionScopeContext

public TransactionScopeContext(BeanManager beanManager)
Method Detail

get

public <T> T get(Contextual<T> contextual)
Specified by:
get in interface Context

get

public <T> T get(Contextual<T> contextual,
                 CreationalContext<T> creationalContext)
Specified by:
get in interface Context

getScope

public Class<? extends Annotation> getScope()
Specified by:
getScope in interface Context

isActive

public boolean isActive()
Specified by:
isActive in interface Context

afterCompletion

public void afterCompletion(int status)
the transaction is done, destory the beans

Specified by:
afterCompletion in interface Synchronization

beforeCompletion

public void beforeCompletion()
Specified by:
beforeCompletion in interface Synchronization


Copyright © 2011 Seam Framework. All Rights Reserved.