org.objectweb.easybeans.naming.interceptors
Class EZBENCInterceptor

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

public class EZBENCInterceptor
extends java.lang.Object
implements EasyBeansInterceptor

This interceptor sets the ENC context before calling method.

Author:
Florent Benoit

Field Summary
private static JLog logger
          Logger.
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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static JLog logger
Logger.


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
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.