org.jboss.ejb3.entity
Class TransactionScopedEntityManagerInterceptor

java.lang.Object
  extended by org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor
All Implemented Interfaces:
org.jboss.aop.advice.Interceptor

public class TransactionScopedEntityManagerInterceptor
extends Object
implements org.jboss.aop.advice.Interceptor

If a transaction-scoped entitymanager is accessed outside of a transaction an entitymanager is created for the duration of the current EJB method call this entitymanager must be closed at the end of the method invocation.

Version:
$Revision: 75613 $
Author:
Bill Burke

Constructor Summary
TransactionScopedEntityManagerInterceptor()
           
 
Method Summary
 String getName()
           
 Object invoke(org.jboss.aop.joinpoint.Invocation invocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionScopedEntityManagerInterceptor

public TransactionScopedEntityManagerInterceptor()
Method Detail

getName

public String getName()
Specified by:
getName in interface org.jboss.aop.advice.Interceptor

invoke

public Object invoke(org.jboss.aop.joinpoint.Invocation invocation)
              throws Throwable
Specified by:
invoke in interface org.jboss.aop.advice.Interceptor
Throws:
Throwable


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.