报告以下 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 {} // 错误:没有特定方法的侦听器类