本文整理了Java中javax.enterprise.inject.spi.Interceptor.intercepts()
方法的一些代码示例,展示了Interceptor.intercepts()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Interceptor.intercepts()
方法的具体详情如下:
包路径:javax.enterprise.inject.spi.Interceptor
类名称:Interceptor
方法名:intercepts
[英]Determines if the interceptor intercepts the specified InterceptionType.
[中]
代码示例来源:origin: org.jboss.cdi.tck/cdi-tck-impl
@Test
@SpecAssertions({ @SpecAssertion(section = INTERCEPTOR, id = "c"), @SpecAssertion(section = INTERCEPTOR, id = "e"),
@SpecAssertion(section = INTERCEPTOR_EE, id = "a") })
public void testInterceptionType() {
Interceptor<?> interceptorBean = getTransactionalInterceptor();
assertTrue(interceptorBean.intercepts(InterceptionType.AROUND_INVOKE));
assertFalse(interceptorBean.intercepts(InterceptionType.POST_ACTIVATE));
assertFalse(interceptorBean.intercepts(InterceptionType.POST_CONSTRUCT));
assertFalse(interceptorBean.intercepts(InterceptionType.PRE_DESTROY));
assertFalse(interceptorBean.intercepts(InterceptionType.PRE_PASSIVATE));
assertFalse(interceptorBean.intercepts(InterceptionType.AROUND_TIMEOUT));
}
代码示例来源:origin: weld/core
@Override
public boolean intercepts(InterceptionType type) {
return delegate().intercepts(type);
}
代码示例来源:origin: org.jboss.weld.se/weld-se-shaded
@Override
public boolean intercepts(InterceptionType type) {
return delegate().intercepts(type);
}
代码示例来源:origin: org.jboss.weld.se/weld-se
@Override
public boolean intercepts(InterceptionType type) {
return delegate().intercepts(type);
}
代码示例来源:origin: org.jboss.weld.servlet/weld-servlet-shaded
@Override
public boolean intercepts(InterceptionType type) {
return delegate().intercepts(type);
}
代码示例来源:origin: weld/core
@Override
public boolean intercepts(InterceptionType type) {
return delegate().intercepts(type);
}
代码示例来源:origin: weld/core
@Override
public boolean intercepts(InterceptionType type) {
return delegate().intercepts(type);
}
代码示例来源:origin: org.apache.openwebbeans/openwebbeans-impl
public List<Interceptor<?>> resolveInterceptors(InterceptionType type, Annotation... interceptorBindings)
{
List<Interceptor<?>> interceptorList = new ArrayList<>();
for (Interceptor<?> interceptor : cdiInterceptors)
{
if (interceptor.intercepts(type) && intercepts(interceptor, interceptorBindings) && isInterceptorClassEnabled(interceptor.getBeanClass()))
{
interceptorList.add(interceptor);
}
}
Collections.sort(interceptorList, new InterceptorComparator(webBeansContext));
return interceptorList;
}
代码示例来源:origin: org.jboss.weld.se/weld-se
@Override
public boolean isEligible(InterceptionType interceptionType) {
return factory.getInterceptor().intercepts(javax.enterprise.inject.spi.InterceptionType.valueOf(interceptionType.name()));
}
代码示例来源:origin: org.jboss.weld.se/weld-se-shaded
@Override
public boolean isEligible(InterceptionType interceptionType) {
return factory.getInterceptor().intercepts(javax.enterprise.inject.spi.InterceptionType.valueOf(interceptionType.name()));
}
代码示例来源:origin: org.jboss.weld.servlet/weld-servlet-shaded
@Override
public boolean isEligible(InterceptionType interceptionType) {
return factory.getInterceptor().intercepts(javax.enterprise.inject.spi.InterceptionType.valueOf(interceptionType.name()));
}
代码示例来源:origin: weld/core
@Override
public boolean isEligible(InterceptionType interceptionType) {
return factory.getInterceptor().intercepts(javax.enterprise.inject.spi.InterceptionType.valueOf(interceptionType.name()));
}
代码示例来源:origin: weld/core
@Override
public boolean isEligible(InterceptionType interceptionType) {
return factory.getInterceptor().intercepts(javax.enterprise.inject.spi.InterceptionType.valueOf(interceptionType.name()));
}
代码示例来源:origin: weld/core
@Override
public boolean isEligible(InterceptionType interceptionType) {
return factory.getInterceptor().intercepts(javax.enterprise.inject.spi.InterceptionType.valueOf(interceptionType.name()));
}
代码示例来源:origin: org.jboss.weld.se/weld-se
@Override
protected boolean matches(InterceptorResolvable resolvable, Interceptor<?> bean) {
return bean.intercepts(resolvable.getInterceptionType())
&& bean.getInterceptorBindings().size() > 0
&& Beans.containsAllInterceptionBindings(bean.getInterceptorBindings(), resolvable.getQualifiers(), getManager())
&& manager.getEnabled().isInterceptorEnabled(bean.getBeanClass());
}
代码示例来源:origin: weld/core
@Override
protected boolean matches(InterceptorResolvable resolvable, Interceptor<?> bean) {
return bean.intercepts(resolvable.getInterceptionType())
&& Beans.containsAllInterceptionBindings(bean.getInterceptorBindings(), resolvable.getQualifiers(), getManager())
&& manager.getEnabled().isInterceptorEnabled(bean.getBeanClass());
}
代码示例来源:origin: org.jboss.weld.servlet/weld-servlet-shaded
@Override
protected boolean matches(InterceptorResolvable resolvable, Interceptor<?> bean) {
return bean.intercepts(resolvable.getInterceptionType())
&& Beans.containsAllInterceptionBindings(bean.getInterceptorBindings(), resolvable.getQualifiers(), getManager())
&& manager.getEnabled().isInterceptorEnabled(bean.getBeanClass());
}
代码示例来源:origin: weld/core
@Override
protected boolean matches(InterceptorResolvable resolvable, Interceptor<?> bean) {
return bean.intercepts(resolvable.getInterceptionType())
&& Beans.containsAllInterceptionBindings(bean.getInterceptorBindings(), resolvable.getQualifiers(), getManager())
&& manager.getEnabled().isInterceptorEnabled(bean.getBeanClass());
}
代码示例来源:origin: weld/core
@Override
protected boolean matches(InterceptorResolvable resolvable, Interceptor<?> bean) {
return bean.intercepts(resolvable.getInterceptionType())
&& Beans.containsAllInterceptionBindings(bean.getInterceptorBindings(), resolvable.getQualifiers(), getManager())
&& manager.getEnabled().isInterceptorEnabled(bean.getBeanClass());
}
代码示例来源:origin: org.jboss.weld.se/weld-se-shaded
@Override
protected boolean matches(InterceptorResolvable resolvable, Interceptor<?> bean) {
return bean.intercepts(resolvable.getInterceptionType())
&& Beans.containsAllInterceptionBindings(bean.getInterceptorBindings(), resolvable.getQualifiers(), getManager())
&& manager.getEnabled().isInterceptorEnabled(bean.getBeanClass());
}
内容来源于网络,如有侵权,请联系作者删除!