javax.enterprise.inject.spi.Decorator.getTypes()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(123)

本文整理了Java中javax.enterprise.inject.spi.Decorator.getTypes()方法的一些代码示例,展示了Decorator.getTypes()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Decorator.getTypes()方法的具体详情如下:
包路径:javax.enterprise.inject.spi.Decorator
类名称:Decorator
方法名:getTypes

Decorator.getTypes介绍

暂无

代码示例

代码示例来源:origin: org.jboss.cdi.tck/cdi-tck-impl

@Test
@SpecAssertions({ @SpecAssertion(section = ENABLED_DECORATORS_BEAN_ARCHIVE, id = "b"), @SpecAssertion(section = DECORATOR_RESOLUTION, id = "aa"),
    @SpecAssertion(section = BM_DECORATOR_RESOLUTION, id = "a") })
public void testDecoratorOrdering() {
  List<Decorator<?>> decorators = getCurrentManager().resolveDecorators(Bazt.TYPES);
  assertEquals(decorators.size(), 2);
  assertTrue(decorators.get(0).getTypes().contains(BazDecorator1.class));
  assertTrue(decorators.get(1).getTypes().contains(BazDecorator2.class));
}

代码示例来源:origin: org.jboss.jsr299.tck/jsr299-tck-impl

@Test
@SpecAssertions({
 @SpecAssertion(section="8.2", id="b"),
 @SpecAssertion(section="8.3", id="aa"),
 @SpecAssertion(section="11.3.11", id="a")
})
public void testDecoratorOrdering()
{
 List<Decorator<?>> decorators = getCurrentManager().resolveDecorators(Bazt.TYPES);
 assert decorators.size() == 2;
 assert decorators.get(0).getTypes().contains(BazDecorator.class);
 assert decorators.get(1).getTypes().contains(BazDecorator1.class);
}

代码示例来源:origin: org.apache.openwebbeans/openwebbeans-impl

for (Type api : decorator.getTypes())

相关文章