|
|||||||||
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 java.lang.reflect.Method |
getThreadNameMethod
Method used to get the context's name associated to the current thread on the Tomcat naming. |
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 | |
---|---|
void |
initContext(java.lang.String id,
javax.naming.Context context)
Init the context for the given name. |
java.lang.Object |
intercept(EasyBeansInvocationContext invocationContext)
Sets JOnAS ENC context. |
void |
removeContext(java.lang.String id)
Remove the context associated to a given id. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String TOMCAT_NAMING_CLASS
private static java.lang.reflect.Method bindThreadMethod
private static java.lang.reflect.Method getThreadNameMethod
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.public void initContext(java.lang.String id, javax.naming.Context context)
initContext
in interface NamingInterceptor
id
- the id.context
- the context associated to a factory's id.public void removeContext(java.lang.String id)
removeContext
in interface NamingInterceptor
id
- the id.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |