org.ow2.jonas.ejb.easybeans
Class JOnASENCInterceptor
java.lang.Object
org.ow2.easybeans.naming.interceptors.AbsENCInterceptor
org.ow2.jonas.ejb.easybeans.JOnASENCInterceptor
- All Implemented Interfaces:
- org.ow2.easybeans.api.EasyBeansInterceptor, org.ow2.easybeans.api.naming.NamingInterceptor
public class JOnASENCInterceptor
- extends org.ow2.easybeans.naming.interceptors.AbsENCInterceptor
- implements org.ow2.easybeans.api.naming.NamingInterceptor
Interceptor used when EasyBeans is integrated in JOnAS.
As the java: namespace is managed by JOnAS, EasyBeans needs to call JOnAS
objects to set java: context.
- Author:
- Florent Benoit
Method Summary |
Object |
intercept(org.ow2.easybeans.api.EasyBeansInvocationContext invocationContext)
Sets JOnAS ENC context. |
Methods inherited from class org.ow2.easybeans.naming.interceptors.AbsENCInterceptor |
initContext, removeContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.ow2.easybeans.api.naming.NamingInterceptor |
initContext, removeContext |
JOnASENCInterceptor
public JOnASENCInterceptor()
- Default constructor.
Gets a reference on the JOnAS naming manager .
intercept
public Object intercept(org.ow2.easybeans.api.EasyBeansInvocationContext invocationContext)
throws Exception
- Sets JOnAS ENC context.
- Specified by:
intercept
in interface org.ow2.easybeans.api.EasyBeansInterceptor
- Specified by:
intercept
in class org.ow2.easybeans.naming.interceptors.AbsENCInterceptor
- Parameters:
invocationContext
- context with useful attributes on the current
invocation.
- Returns:
- result of the next invocation (to chain interceptors).
- Throws:
Exception
- needs for signature of interceptor.
Copyright © 2010 OW2 Consortium. All Rights Reserved.