EJB 仕様に関する以下の違反を報告します。
例:
@Stateless
public class ExampleBean {
@Interceptors(GoodInterceptor.class)
public void getSomeData() { ... }
@Interceptors(EmptyInterceptor.class)
public void getSomeData() { ... }
}
class GoodInterceptor {
@AroundInvoke
public Object logAll(InvocationContext context) throws Exception { ... }
@PostConstruct
public Object logCreate(InvocationContext context) throws Exception { ... }
}
class EmptyInterceptor {} // エラー: 特定のメソッドを持たないインターセプタークラス