本文整理了Java中javax.enterprise.inject.spi.Bean.isNullable()
方法的一些代码示例,展示了Bean.isNullable()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Bean.isNullable()
方法的具体详情如下:
包路径:javax.enterprise.inject.spi.Bean
类名称:Bean
方法名:isNullable
[英]Determines if javax.enterprise.context.spi.Contextual#create(CreationalContext) sometimes return a null value.
As of CDI 1.1 this method is deprecated and can safely always return false.
[中]确定是否使用javax。企业上下文spi。上下文#create(CreationalContext)有时返回空值。
从CDI 1.1开始,此方法已被弃用,并且可以安全地始终返回false。
代码示例来源:origin: org.apache.camel/camel-cdi
@Override
public boolean isNullable() {
return delegate.isNullable();
}
代码示例来源:origin: org.apache.openwebbeans/openwebbeans-impl
@Override
public boolean isNullable()
{
return bean.isNullable();
}
代码示例来源:origin: apache/deltaspike
@Override
public boolean isNullable()
{
return producer.isNullable();
}
代码示例来源:origin: com.tomitribe.tribestream/tribestream-container
@Override
public boolean isNullable() {
return delegate.isNullable();
}
代码示例来源:origin: org.tomitribe/sabot
@Override
public boolean isNullable() {
return delegate.isNullable();
}
代码示例来源:origin: com.caucho/resin
/**
* Returns true if the bean can be null
*/
@Override
public boolean isNullable()
{
return getBean().isNullable();
}
代码示例来源:origin: org.jboss.weld.se/weld-se
@Override
public boolean isNullable() {
return delegate().isNullable();
}
代码示例来源:origin: org.jboss.seam.solder/seam-solder
public boolean isNullable()
{
return delegate().isNullable();
}
代码示例来源:origin: org.jboss.weld.se/weld-se-shaded
@Override
public boolean isNullable() {
return delegate().isNullable();
}
代码示例来源:origin: weld/core
@Override
public boolean isNullable() {
return delegate().isNullable();
}
代码示例来源:origin: weld/core
@Override
public boolean isNullable() {
return delegate().isNullable();
}
代码示例来源:origin: weld/core
@Override
public boolean isNullable() {
return delegate().isNullable();
}
代码示例来源:origin: org.jboss.jsr299.tck/jsr299-tck-impl
public boolean isNullable()
{
return delegate().isNullable();
}
代码示例来源:origin: org.jboss.weld.servlet/weld-servlet-shaded
@Override
public boolean isNullable() {
return delegate().isNullable();
}
代码示例来源:origin: org.infinispan/infinispan-cdi
public boolean isNullable() {
return delegate().isNullable();
}
代码示例来源:origin: org.agorava/solder-generics-impl
public boolean isNullable() {
return delegate().isNullable();
}
代码示例来源:origin: org.apache.openwebbeans/openwebbeans-impl
public ThirdpartyBeanImpl(WebBeansContext webBeansContext, Bean<T> bean)
{
super(webBeansContext,
WebBeansType.THIRDPARTY,
new ThirdpartyBeanAttributesImpl<>(bean),
bean.getBeanClass(),
bean.isNullable());
this.bean = bean;
}
代码示例来源:origin: org.jboss.jsr299.tck/jsr299-tck-impl
@Test(groups = "producerMethod")
@SpecAssertions({
@SpecAssertion(section = "2.2.1", id = "j"),
@SpecAssertion(section = "5.2.4", id = "ba"),
@SpecAssertion(section = "11.1", id = "bd")
})
public void testIsNullable() throws Exception
{
assert getBeans(int.class).size() == 1;
Bean<Integer> bean = getBeans(int.class).iterator().next();
assert !bean.isNullable();
assert getBeans(Animal.class, TAME_LITERAL).size() == 1;
Bean<Animal> animalBean = getBeans(Animal.class, TAME_LITERAL).iterator().next();
assert animalBean.isNullable();
}
代码示例来源:origin: org.apache.openwebbeans/openwebbeans-impl
/**
* do not remove, this ct is used from within TomEE for example.
* @deprecated
*/
public BeanAttributesImpl(Bean<T> bean)
{
this(bean.getTypes(),
bean.getQualifiers(),
bean.getScope(),
bean.getName(),
bean.isNullable(),
bean.getStereotypes(),
bean.isAlternative());
}
代码示例来源:origin: com.caucho/resin
boolean isNullable = bean.isNullable();
内容来源于网络,如有侵权,请联系作者删除!