org.jboss.seam.transaction
Class TransactionExtension

java.lang.Object
  extended by org.jboss.seam.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
 Annotation getClassLevelTransactionAnnotation(Class<?> clazz)
           
<X> void
processAnnotatedType(javax.enterprise.inject.spi.ProcessAnnotatedType<X> event, javax.enterprise.inject.spi.BeanManager beanManager)
          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,
                                     javax.enterprise.inject.spi.BeanManager beanManager)
Looks for @Transaction or @TransactionAttribute annotations and if they are found adds the transaction intercepter binding


getClassLevelTransactionAnnotation

public Annotation getClassLevelTransactionAnnotation(Class<?> clazz)


Copyright © 2011 Seam Framework. All Rights Reserved.