本文整理了Java中org.jboss.weld.environment.se.Weld.addInterceptor()
方法的一些代码示例,展示了Weld.addInterceptor()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Weld.addInterceptor()
方法的具体详情如下:
包路径:org.jboss.weld.environment.se.Weld
类名称:Weld
方法名:addInterceptor
[英]Add an interceptor class to the list of enabled interceptors for the synthetic bean archive.
This method does not add any class to the set of bean classes for the synthetic bean archive. It's purpose is solely to compensate the absence of the beans.xml
descriptor.
[中]将拦截器类添加到合成bean归档的已启用拦截器列表中。
此方法不会向合成bean归档的bean类集合添加任何类。它的目的只是为了弥补beans.xml
描述符的缺失。
代码示例来源:origin: weld/core
@Override
public Weld enableInterceptors(Class<?>... interceptorClasses) {
for (Class<?> interceptorClass : interceptorClasses) {
addInterceptor(interceptorClass);
}
return this;
}
代码示例来源:origin: weld/core
@Override
public Weld enableInterceptors(Class<?>... interceptorClasses) {
for (Class<?> interceptorClass : interceptorClasses) {
addInterceptor(interceptorClass);
}
return this;
}
代码示例来源:origin: org.jboss.weld.se/weld-se-shaded
@Override
public Weld enableInterceptors(Class<?>... interceptorClasses) {
for (Class<?> interceptorClass : interceptorClasses) {
addInterceptor(interceptorClass);
}
return this;
}
代码示例来源:origin: org.jboss.weld.se/weld-se
/**
* Add interceptor classes to the list of enabled interceptors for the synthetic bean archive.
* <p>
* This method does not add any class to the set of bean classes of the synthetic bean archive.
* </p>
* @param interceptorClasses interceptors to enable
* @return self
*/
public Weld enableInterceptors(Class<?>... interceptorClasses) {
for (Class<?> clazz : interceptorClasses) {
addInterceptor(clazz);
}
return this;
}
代码示例来源:origin: org.jboss.weld.se/weld-se
/**
* Enable interceptors for the synthetic bean archive, all previous values are removed.
* <p>
* This method does not add any class to the set of bean classes for the synthetic bean archive. It's purpose is solely to compensate the absence of the
* <code>beans.xml</code> descriptor.
*
* @param interceptorClasses
* @return self
*/
public Weld interceptors(Class<?>... interceptorClasses) {
enabledInterceptors.clear();
for (Class<?> interceptorClass : interceptorClasses) {
addInterceptor(interceptorClass);
}
return this;
}
代码示例来源:origin: weld/weld-junit
.distinct()
.forEach(interceptor -> {
weld.addInterceptor(interceptor);
weld.addBeanClass(interceptor);
});
代码示例来源:origin: org.jboss.weld/weld-junit5
.distinct()
.forEach(interceptor -> {
weld.addInterceptor(interceptor);
weld.addBeanClass(interceptor);
});
代码示例来源:origin: weld/weld-junit
this.weld.addInterceptor(MockInterceptor.class);
代码示例来源:origin: org.jboss.weld/weld-junit-common
this.weld.addInterceptor(MockInterceptor.class);
内容来源于网络,如有侵权,请联系作者删除!