org.objectweb.easybeans.naming
Class ENCInterceptor

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

public class ENCInterceptor
extends java.lang.Object
implements EasyBeansInterceptor

This interceptor sets the ENC context before calling method.

Author:
Florent Benoit

Field Summary
private  JLog logger
          Logger.
 
Constructor Summary
ENCInterceptor()
           
 
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 JLog logger
Logger.

Constructor Detail

ENCInterceptor

public ENCInterceptor()
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.