1 25 26 package org.objectweb.easybeans.security.interceptors; 27 28 import javax.ejb.EJBAccessException ; 29 30 import org.objectweb.easybeans.api.EasyBeansInterceptor; 31 import org.objectweb.easybeans.api.EasyBeansInvocationContext; 32 33 37 public class DenyAllInterceptor implements EasyBeansInterceptor { 38 39 46 public Object intercept(final EasyBeansInvocationContext invocationContext) throws Exception { 47 throw new EJBAccessException ("The method '" + invocationContext.getMethod() + "' of bean '" 48 + invocationContext.getFactory().getBeanInfo().getName() 49 + "' has been marked as a DenyAll method. No call on this method is allowed."); 50 } 51 } 52 | Popular Tags |