我正在Glassfish 3.1.2.2上运行EAR模块,并且遇到Deltaspike正在创建两个bean实例的问题(一个在ejb模块中,一个在Web模块中)。
我想在网络模块中否决这个bean
public class VetoAnnotatedTypeExtension implements Extension {
public <T> void processAnnotatedType(@Observes ProcessAnnotatedType<T> type) {
if (something?) {
type.veto();
}
}
}
在网络应用程序上下文中,我可以使用something?
判断一个谓词吗?
答案 0 :(得分:0)