1 22 package org.jboss.ejb3.test.interceptors2; 23 24 import javax.interceptor.ExcludeClassInterceptors; 25 import javax.interceptor.ExcludeDefaultInterceptors; 26 import javax.interceptor.Interceptors; 27 import javax.ejb.Stateless ; 28 29 34 @Interceptors({AnnotatedClassInterceptor3.class, XMLClassInterceptor3.class}) 35 @Stateless (name="OrderedSLSB") 36 public class OrderedSLSB implements OrderedSLSBRemote 37 { 38 39 public void methodWithClassLevel() 40 { 41 42 } 43 44 @ExcludeClassInterceptors 45 @ExcludeDefaultInterceptors 46 @Interceptors({AnnotatedMethodInterceptor.class, XMLMethodInterceptor.class}) 47 public void methodWithOwn(String s, int i) 48 { 49 50 } 51 52 @Interceptors({AnnotatedMethodInterceptor.class, XMLMethodInterceptor.class, MixedMethodInterceptor.class}) 53 public void overLoadedMethod(String s) 54 { 55 56 } 57 58 @Interceptors({AnnotatedMethodInterceptor.class, XMLMethodInterceptor.class, MixedMethodInterceptor.class}) 59 public void overLoadedMethod(long l) 60 { 61 62 } 63 64 @ExcludeClassInterceptors 65 @Interceptors({MixedMethodInterceptor.class}) 66 public void overLoadedMethod() 67 { 68 69 } 70 71 @Interceptors({AnnotatedMethodInterceptor.class, XMLMethodInterceptor.class, MixedMethodInterceptor.class}) 72 public void methodNotSpecifyingAll() 73 { 74 75 } 76 } 77 | Popular Tags |