1 22 23 package org.jboss.ejb3; 24 25 import org.jboss.aop.advice.Interceptor; 26 import org.jboss.aop.joinpoint.Invocation; 27 import org.jboss.ejb.AllowedOperationsAssociation; 28 import org.jboss.ejb.AllowedOperationsFlags; 29 30 34 public class AllowedOperationsInterceptor implements Interceptor 35 { 36 37 public String getName() 38 { 39 return "AllowedOperationsInterceptor"; 40 } 41 42 public Object invoke(Invocation invocation) throws Throwable 43 { 44 try 45 { 46 AllowedOperationsAssociation.pushInMethodFlag(AllowedOperationsFlags.IN_EJB_TIMEOUT); 47 return invocation.invokeNext(); 48 } 49 finally 50 { 51 AllowedOperationsAssociation.popInMethodFlag(); 52 } 53 } 54 55 } 56 | Popular Tags |