org.objectweb.easybeans.security.interceptors
Class DenyAllInterceptor

java.lang.Object
  extended by org.objectweb.easybeans.security.interceptors.DenyAllInterceptor
All Implemented Interfaces:
EasyBeansInterceptor

public class DenyAllInterceptor
extends java.lang.Object
implements EasyBeansInterceptor

Access to the method is not authorized.

Author:
Florent Benoit

Constructor Summary
DenyAllInterceptor()
           
 
Method Summary
 java.lang.Object intercept(EasyBeansInvocationContext invocationContext)
          Denies all calls to the current method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DenyAllInterceptor

public DenyAllInterceptor()
Method Detail

intercept

public java.lang.Object intercept(EasyBeansInvocationContext invocationContext)
                           throws java.lang.Exception
Denies all calls to the current method.

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 - if interceptor fails