org.defne.ejb.service
Class TransactionalInterceptor
java.lang.Object
org.defne.ejb.service.TransactionalInterceptor
public class TransactionalInterceptor
- extends Object
EJB based interceptor. It is responsible for
- Version:
- $Rev$ $Date$
- Author:
- gurkanerdogdu
|
Method Summary |
Object |
aroundServiceMethodInvoke(javax.interceptor.InvocationContext context)
Intercepts the call and inject entity manager to bag
that is used by the service methods. |
void |
postConstruct(javax.interceptor.InvocationContext ctx)
Setups entity manager provider instance
that holds the actual entity manager. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransactionalInterceptor
public TransactionalInterceptor()
postConstruct
@PostConstruct
public void postConstruct(javax.interceptor.InvocationContext ctx)
- Setups entity manager provider instance
that holds the actual entity manager.
- Parameters:
ctx - invocation context
aroundServiceMethodInvoke
public Object aroundServiceMethodInvoke(javax.interceptor.InvocationContext context)
throws Exception
- Intercepts the call and inject entity manager to bag
that is used by the service methods.
- Parameters:
context - invocation context
- Returns:
- the service execution result
- Throws:
Exception - for any exception
Copyright © 2010 MechSoft Mechanical and Software Solutions. All Rights Reserved.