org.objectweb.easybeans.naming.interceptors
Class EZBENCInterceptor

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

public class EZBENCInterceptor
extends AbsENCInterceptor
implements NamingInterceptor

This interceptor sets the ENC context before calling method.

Author:
Florent Benoit

Field Summary
private static NamingManager namingManager
          Reference on the naming manager.
 
Constructor Summary
EZBENCInterceptor()
          Default constructor.
 
Method Summary
 java.lang.Object intercept(EasyBeansInvocationContext invocationContext)
          Sets ENC context.
 
Methods inherited from class org.objectweb.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.objectweb.easybeans.api.naming.NamingInterceptor
initContext, removeContext
 

Field Detail

namingManager

private static NamingManager namingManager
Reference on the naming manager.

Constructor Detail

EZBENCInterceptor

public EZBENCInterceptor()
Default constructor. Gets a reference on the naming manager.

Method Detail

intercept

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

Specified by:
intercept in interface EasyBeansInterceptor
Specified by:
intercept in class AbsENCInterceptor
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.