File tree Expand file tree Collapse file tree 8 files changed +35
-113
lines changed
cdi/interceptors-prioriry/src
main/java/org/javaee7/cdi/interceptors
test/java/org/javaee7/cdi/interceptors/priority Expand file tree Collapse file tree 8 files changed +35
-113
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ package org .javaee7 .cdi .interceptors .priority ;
2+
3+ /**
4+ * @author Radim Hanus
5+ */
6+ public interface Greeting {
7+ public String getGreet ();
8+ public void setGreet (String name );
9+ }
Original file line number Diff line number Diff line change 1- package org .javaee7 .cdi .interceptors ;
1+ package org .javaee7 .cdi .interceptors . priority ;
22
33import javax .annotation .Priority ;
44import javax .interceptor .AroundInvoke ;
Original file line number Diff line number Diff line change 1- package org .javaee7 .cdi .interceptors ;
1+ package org .javaee7 .cdi .interceptors . priority ;
22
33import javax .annotation .Priority ;
44import javax .interceptor .AroundInvoke ;
55import javax .interceptor .Interceptor ;
66import javax .interceptor .InvocationContext ;
7- import java .lang .reflect .Field ;
87
98/**
109 * Interceptors with smaller priority values are called first.
Original file line number Diff line number Diff line change 3737 * only if the new code is made subject to such option by the copyright
3838 * holder.
3939 */
40- package org .javaee7 .cdi .interceptors ;
40+ package org .javaee7 .cdi .interceptors . priority ;
4141
42- import static java .lang .annotation .ElementType .TYPE ;
43- import static java .lang .annotation .ElementType .METHOD ;
44- import static java .lang .annotation .RetentionPolicy .RUNTIME ;
42+ import javax .interceptor .InterceptorBinding ;
4543import java .lang .annotation .Inherited ;
4644import java .lang .annotation .Retention ;
4745import java .lang .annotation .Target ;
48- import javax .interceptor .InterceptorBinding ;
46+
47+ import static java .lang .annotation .ElementType .METHOD ;
48+ import static java .lang .annotation .ElementType .TYPE ;
49+ import static java .lang .annotation .RetentionPolicy .RUNTIME ;
4950
5051/**
5152 * @author Arun Gupta
Original file line number Diff line number Diff line change 1+ package org .javaee7 .cdi .interceptors .priority ;
2+
3+ /**
4+ * @author Radim Hanus
5+ */
6+ @ MyInterceptorBinding
7+ public class SimpleGreeting implements Greeting {
8+ private String greet ;
9+
10+ public String getGreet () {
11+ return greet ;
12+ }
13+
14+ public void setGreet (String greet ) {
15+ this .greet = greet ;
16+ }
17+ }
Original file line number Diff line number Diff line change 1- package org .javaee7 .cdi .interceptors ;
1+ package org .javaee7 .cdi .interceptors . priority ;
22
33import org .jboss .arquillian .container .test .api .Deployment ;
44import org .jboss .arquillian .junit .Arquillian ;
You can’t perform that action at this time.
0 commit comments