I see this implementation:
@Interceptors(TesteInterceptor.class) @Target(value={ElementType.TYPE})
@Retention(value=RetentionPolicy.RUNTIME) public @interface
@TestInterceptorAnnotation {} @Interceptor public class
TestInterceptor { @PostConstruct public Object
businessIntercept(InvocationContext ctx) { System.out.println("INTERCEPTOR
@PostConstruct: " + ctx.getTarget().getClass().getName()); }
} @Singleton @TestInterceptorAnnotation public class
TestInterceptor { } I see too.. @SOAPBinding
@Target(value={ElementType.TYPE}) @Retention(value=RetentionPolicy.RUNTIME)
public @interface @TestInterceptorAnnotation {} @Interceptor
@TestInterceptorAnnotation public class TestInterceptor {
@PostConstruct public Object businessIntercept(InvocationContext ctx) {
System.out.println("INTERCEPTOR @PostConstruct: " +
ctx.getTarget().getClass().getName()); } }
@Singleton @TestInterceptorAnnotation public class TestInterceptor { }
I try this 2 implementation and not work in Glassfish 3.1, this is
allowed? what is wrong?
--
[Message sent by forum member 'helbert']
View Post: http://forums.java.net/node/804680