org.objectweb.easybeans.naming.interceptors
Class AbsENCInterceptor

java.lang.Object
  extended by org.objectweb.easybeans.naming.interceptors.AbsENCInterceptor
All Implemented Interfaces:
EasyBeansInterceptor, NamingInterceptor
Direct Known Subclasses:
EZBENCInterceptor, JettyENCInterceptor, JOnASENCInterceptor

public abstract class AbsENCInterceptor
extends java.lang.Object
implements NamingInterceptor

Default abstract interceptor that naming interceptors can extend.

Author:
Florent Benoit

Constructor Summary
AbsENCInterceptor()
           
 
Method Summary
 void initContext(java.lang.String id, javax.naming.Context context)
          Init the context for the given name.
abstract  java.lang.Object intercept(EasyBeansInvocationContext invocationContext)
          Sets the 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
 

Constructor Detail

AbsENCInterceptor

public AbsENCInterceptor()
Method Detail

intercept

public abstract java.lang.Object intercept(EasyBeansInvocationContext invocationContext)
                                    throws java.lang.Exception
Sets the ENC context.

Specified by:
intercept in interface EasyBeansInterceptor
Parameters:
invocationContext - context with useful attributes on the current invocation.
Returns:
result of the next invocation (to chain interceptors).
Throws:
java.lang.Exception - needs for signature of interceptor.

initContext

public void initContext(java.lang.String id,
                        javax.naming.Context context)
Init the context for the given name.

Specified by:
initContext in interface NamingInterceptor
Parameters:
id - the id.
context - the context associated to a factory's id.

removeContext

public void removeContext(java.lang.String id)
Remove the context associated to a given id.

Specified by:
removeContext in interface NamingInterceptor
Parameters:
id - the id.