本文整理了Java中javax.enterprise.inject.spi.Decorator.getDelegateQualifiers()
方法的一些代码示例,展示了Decorator.getDelegateQualifiers()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Decorator.getDelegateQualifiers()
方法的具体详情如下:
包路径:javax.enterprise.inject.spi.Decorator
类名称:Decorator
方法名:getDelegateQualifiers
暂无
代码示例来源:origin: weld/core
@Override
public Set<Annotation> getDelegateQualifiers() {
return delegate().getDelegateQualifiers();
}
代码示例来源:origin: org.jboss.weld.se/weld-se-shaded
@Override
public Set<Annotation> getDelegateQualifiers() {
return delegate().getDelegateQualifiers();
}
代码示例来源:origin: org.jboss.weld.se/weld-se
@Override
public Set<Annotation> getDelegateQualifiers() {
return delegate().getDelegateQualifiers();
}
代码示例来源:origin: org.jboss.weld.servlet/weld-servlet-shaded
@Override
public Set<Annotation> getDelegateQualifiers() {
return delegate().getDelegateQualifiers();
}
代码示例来源:origin: weld/core
@Override
public Set<Annotation> getDelegateQualifiers() {
return delegate().getDelegateQualifiers();
}
代码示例来源:origin: weld/core
@Override
public Set<Annotation> getDelegateQualifiers() {
return delegate().getDelegateQualifiers();
}
代码示例来源:origin: com.caucho/resin
public DecoratorEntry(InjectManager manager, Decorator<X> decorator,
BaseType delegateType)
{
_decorator = decorator;
_delegateType = delegateType;
for (Annotation ann : decorator.getDelegateQualifiers()) {
_bindings.add(new QualifierBinding(ann));
}
if (_bindings.size() == 0)
_bindings.add(new QualifierBinding(DefaultLiteral.DEFAULT));
for (Type type: decorator.getDecoratedTypes()) {
_decoratedTypes.add(manager.createSourceBaseType(type));
}
}
代码示例来源:origin: org.jboss.cdi.tck/cdi-tck-impl
@SuppressWarnings("unchecked")
@Test
@SpecAssertions({ @SpecAssertion(section = DELEGATE_ATTRIBUTE, id = "a"), @SpecAssertion(section = DECORATOR, id = "c") })
public void testDelegateInjectionPoint() {
List<Decorator<?>> decorators = getCurrentManager().resolveDecorators(Logger.TYPES);
assertEquals(decorators.size(), 1);
Decorator<?> decorator = decorators.get(0);
assertEquals(decorator.getInjectionPoints().size(), 1);
assertEquals(decorator.getInjectionPoints().iterator().next().getType(),Logger.class);
assertTrue(decorator.getInjectionPoints().iterator().next().getAnnotated().isAnnotationPresent(Delegate.class));
assertEquals(decorator.getDelegateType(), Logger.class);
assertEquals(decorator.getDelegateQualifiers().size(), 1);
assertAnnotationSetMatches(decorator.getDelegateQualifiers(), Default.class);
}
代码示例来源:origin: weld/core
private void validateDecorator(Decorator<?> decorator) {
Set<Annotation> qualifiers = decorator.getDelegateQualifiers();
if (decorator.getDelegateType() == null) {
throw BeanLogger.LOG.decoratorMethodReturnsNull("getDelegateType", decorator);
}
Bindings.validateQualifiers(qualifiers, getBeanManager(), decorator, "Decorator.getDelegateQualifiers");
if (decorator.getDecoratedTypes() == null) {
throw BeanLogger.LOG.decoratorMethodReturnsNull("getDecoratedTypes", decorator);
}
}
代码示例来源:origin: weld/core
private void validateDecorator(Decorator<?> decorator) {
Set<Annotation> qualifiers = decorator.getDelegateQualifiers();
if (decorator.getDelegateType() == null) {
throw BeanLogger.LOG.decoratorMethodReturnsNull("getDelegateType", decorator);
}
Bindings.validateQualifiers(qualifiers, getBeanManager(), decorator, "Decorator.getDelegateQualifiers");
if (decorator.getDecoratedTypes() == null) {
throw BeanLogger.LOG.decoratorMethodReturnsNull("getDecoratedTypes", decorator);
}
}
代码示例来源:origin: org.jboss.weld.se/weld-se
private void validateDecorator(Decorator<?> decorator) {
Set<Annotation> qualifiers = decorator.getDelegateQualifiers();
if (decorator.getDelegateType() == null) {
throw BeanLogger.LOG.decoratorMethodReturnsNull("getDelegateType", decorator);
}
Bindings.validateQualifiers(qualifiers, getBeanManager(), decorator, "Decorator.getDelegateQualifiers");
if (decorator.getDecoratedTypes() == null) {
throw BeanLogger.LOG.decoratorMethodReturnsNull("getDecoratedTypes", decorator);
}
}
代码示例来源:origin: org.jboss.weld.se/weld-se-shaded
private void validateDecorator(Decorator<?> decorator) {
Set<Annotation> qualifiers = decorator.getDelegateQualifiers();
if (decorator.getDelegateType() == null) {
throw BeanLogger.LOG.decoratorMethodReturnsNull("getDelegateType", decorator);
}
Bindings.validateQualifiers(qualifiers, getBeanManager(), decorator, "Decorator.getDelegateQualifiers");
if (decorator.getDecoratedTypes() == null) {
throw BeanLogger.LOG.decoratorMethodReturnsNull("getDecoratedTypes", decorator);
}
}
代码示例来源:origin: org.jboss.weld.servlet/weld-servlet-shaded
private void validateDecorator(Decorator<?> decorator) {
Set<Annotation> qualifiers = decorator.getDelegateQualifiers();
if (decorator.getDelegateType() == null) {
throw BeanLogger.LOG.decoratorMethodReturnsNull("getDelegateType", decorator);
}
Bindings.validateQualifiers(qualifiers, getBeanManager(), decorator, "Decorator.getDelegateQualifiers");
if (decorator.getDecoratedTypes() == null) {
throw BeanLogger.LOG.decoratorMethodReturnsNull("getDecoratedTypes", decorator);
}
}
代码示例来源:origin: weld/core
private void validateDecorator(Decorator<?> decorator) {
Set<Annotation> qualifiers = decorator.getDelegateQualifiers();
if (decorator.getDelegateType() == null) {
throw BeanLogger.LOG.decoratorMethodReturnsNull("getDelegateType", decorator);
}
Bindings.validateQualifiers(qualifiers, getBeanManager(), decorator, "Decorator.getDelegateQualifiers");
if (decorator.getDecoratedTypes() == null) {
throw BeanLogger.LOG.decoratorMethodReturnsNull("getDecoratedTypes", decorator);
}
}
代码示例来源:origin: org.jboss.weld.se/weld-se-shaded
@Override
protected boolean matches(Resolvable resolvable, Decorator<?> bean) {
return rules.matches(Collections.singleton(bean.getDelegateType()), resolvable.getTypes())
&& Beans.containsAllQualifiers(QualifierInstance.of(bean.getDelegateQualifiers(), getStore()), resolvable.getQualifiers())
&& getBeanManager().getEnabled().isDecoratorEnabled(bean.getBeanClass());
}
代码示例来源:origin: org.jboss.weld.se/weld-se
@Override
protected boolean matches(Resolvable resolvable, Decorator<?> bean) {
return rules.matches(Collections.singleton(bean.getDelegateType()), resolvable.getTypes())
&& Beans.containsAllQualifiers(QualifierInstance.of(bean.getDelegateQualifiers(), getStore()), resolvable.getQualifiers())
&& getBeanManager().getEnabled().isDecoratorEnabled(bean.getBeanClass());
}
代码示例来源:origin: weld/core
@Override
protected boolean matches(Resolvable resolvable, Decorator<?> bean) {
return rules.matches(Collections.singleton(bean.getDelegateType()), resolvable.getTypes())
&& Beans.containsAllQualifiers(QualifierInstance.of(bean.getDelegateQualifiers(), getStore()), resolvable.getQualifiers())
&& getBeanManager().getEnabled().isDecoratorEnabled(bean.getBeanClass());
}
代码示例来源:origin: org.jboss.weld.servlet/weld-servlet-shaded
@Override
protected boolean matches(Resolvable resolvable, Decorator<?> bean) {
return rules.matches(Collections.singleton(bean.getDelegateType()), resolvable.getTypes())
&& Beans.containsAllQualifiers(QualifierInstance.of(bean.getDelegateQualifiers(), getStore()), resolvable.getQualifiers())
&& getBeanManager().getEnabled().isDecoratorEnabled(bean.getBeanClass());
}
代码示例来源:origin: weld/core
@Override
protected boolean matches(Resolvable resolvable, Decorator<?> bean) {
return rules.matches(Collections.singleton(bean.getDelegateType()), resolvable.getTypes())
&& Beans.containsAllQualifiers(QualifierInstance.of(bean.getDelegateQualifiers(), getStore()), resolvable.getQualifiers())
&& getBeanManager().getEnabled().isDecoratorEnabled(bean.getBeanClass());
}
代码示例来源:origin: weld/core
@Override
protected boolean matches(Resolvable resolvable, Decorator<?> bean) {
return rules.matches(Collections.singleton(bean.getDelegateType()), resolvable.getTypes())
&& Beans.containsAllQualifiers(QualifierInstance.of(bean.getDelegateQualifiers(), getStore()), resolvable.getQualifiers())
&& getBeanManager().getEnabled().isDecoratorEnabled(bean.getBeanClass());
}
内容来源于网络,如有侵权,请联系作者删除!