|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.naming.interceptors.TomcatENCInterceptor
public class TomcatENCInterceptor
Interceptor used when EasyBeans is integrated in Tomcat. As the java: namespace is managed by Tomcat, EasyBeans needs to call Tomcat objects in order to set java: context.
Field Summary | |
---|---|
private static java.lang.reflect.Method |
bindContextMethod
Method used to bind the component context for the current thread on the Tomcat naming. |
private static java.lang.reflect.Method |
bindThreadMethod
Method used to bind the name associated to a component context for the current thread on the Tomcat naming. |
private static JLog |
logger
Logger. |
protected static java.lang.String |
TOMCAT_NAMING_CLASS
Tomcat's class for naming. |
private static java.lang.reflect.Method |
unbindContextMethod
Method used to unbind the component context for the current thread on the Tomcat naming. |
private static java.lang.reflect.Method |
unbindThreadMethod
Method used to unbind the name associated to a context for the current thread on the Tomcat naming. |
Constructor Summary | |
---|---|
TomcatENCInterceptor()
Default constructor. |
Method Summary | |
---|---|
java.lang.Object |
intercept(EasyBeansInvocationContext invocationContext)
Sets JOnAS ENC context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static JLog logger
protected static final java.lang.String TOMCAT_NAMING_CLASS
private static java.lang.reflect.Method bindThreadMethod
private static java.lang.reflect.Method unbindThreadMethod
private static java.lang.reflect.Method bindContextMethod
private static java.lang.reflect.Method unbindContextMethod
Constructor Detail |
---|
public TomcatENCInterceptor()
Method Detail |
---|
public java.lang.Object intercept(EasyBeansInvocationContext invocationContext) throws java.lang.Exception
intercept
in interface EasyBeansInterceptor
invocationContext
- context with useful attributes on the current
invocation.
java.lang.Exception
- needs for signature of interceptor.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |