org.jboss.seam.persistence.transaction
Class TransactionExtension

java.lang.Object
  extended by org.jboss.seam.persistence.transaction.TransactionExtension
All Implemented Interfaces:
javax.enterprise.inject.spi.Extension

public class TransactionExtension
extends Object
implements javax.enterprise.inject.spi.Extension

Extension than provides a SeamTransaction if no other UserTransaction has been registered. This allows the user to register a transaction via seam XML and have it automatically replace the default UserTransaction implementation This is not done with alternatives, because that would require specifying the transaction manager on a per module basis, and some of the UserTransaction implementations need to be configured via seam xml anyway, so they would have to be configured twice

Author:
Stuart Douglas

Constructor Summary
TransactionExtension()
           
 
Method Summary
<X> javax.enterprise.inject.spi.AnnotatedType
addInterceptorBinding(javax.enterprise.inject.spi.AnnotatedType<X> type)
           
<X> void
processAnnotatedType(javax.enterprise.inject.spi.ProcessAnnotatedType<X> event)
          Looks for @Transaction or @TransactionAttribute annotations and if they are found adds the transaction intercepter binding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionExtension

public TransactionExtension()
Method Detail

processAnnotatedType

public <X> void processAnnotatedType(@Observes
                                     javax.enterprise.inject.spi.ProcessAnnotatedType<X> event)
Looks for @Transaction or @TransactionAttribute annotations and if they are found adds the transaction intercepter binding


addInterceptorBinding

public <X> javax.enterprise.inject.spi.AnnotatedType addInterceptorBinding(javax.enterprise.inject.spi.AnnotatedType<X> type)


Copyright © 2010 Seam Framework. All Rights Reserved.