1 22 package org.jboss.ejb3.test.interceptors2; 23 24 import javax.interceptor.Interceptors; 25 26 import org.jboss.annotation.ejb.Management; 27 import org.jboss.annotation.ejb.Service; 28 29 34 @Interceptors({MixedClassInterceptor.class}) 35 @Service(objectName="test:service=mixed", name="MixedService") 36 @Management(MixedServiceManagement.class) 37 public class MixedServiceBean implements MixedServiceRemote, MixedServiceManagement 38 { 39 40 @Interceptors({MixedMethodInterceptor.class}) 41 public void managementMethod() 42 { 43 } 44 45 @Interceptors({MixedMethodInterceptor.class}) 46 public void defaultMethod() 47 { 48 } 49 50 public void remoteMethod() 51 { 52 } 53 54 } 55 | Popular Tags |