本文整理了Java中javax.enterprise.inject.spi.CDI.getCDIProvider()
方法的一些代码示例,展示了CDI.getCDIProvider()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。CDI.getCDIProvider()
方法的具体详情如下:
包路径:javax.enterprise.inject.spi.CDI
类名称:CDI
方法名:getCDIProvider
[英]Obtain the CDIProvider the user set with #setCDIProvider(CDIProvider), or if it wasn't set, use the serviceloader the retrieve the CDIProvider with the highest priority.
[中]获取用户使用#setCDIProvider(CDIProvider)设置的CDIProvider,如果未设置,则使用serviceloader以最高优先级检索CDIProvider。
代码示例来源:origin: javax.enterprise/cdi-api
/**
* <p>
* Get the CDI instance that provides access to the current container.
* </p>
*
* <p>
* If there are no providers available, an {@link IllegalStateException} is thrown, otherwise the first provider which can
* access the container is used.
* </p>
*
* @throws IllegalStateException if no {@link CDIProvider} is available
* @return the CDI instance
*/
public static CDI<Object> current() {
return getCDIProvider().getCDI();
}
代码示例来源:origin: org.jboss.weld.servlet/weld-servlet-shaded
/**
* <p>
* Get the CDI instance that provides access to the current container.
* </p>
*
* <p>
* If there are no providers available, an {@link IllegalStateException} is thrown, otherwise the first provider which can
* access the container is used.
* </p>
*
* @throws IllegalStateException if no {@link CDIProvider} is available
* @return the CDI instance
*/
public static CDI<Object> current() {
return getCDIProvider().getCDI();
}
代码示例来源:origin: javax/javaee-web-api
/**
* <p>
* Get the CDI instance that provides access to the current container.
* </p>
*
* <p>
* If there are no providers available, an {@link IllegalStateException} is thrown, otherwise the first provider which can
* access the container is used.
* </p>
*
* @throws IllegalStateException if no {@link CDIProvider} is available
* @return the CDI instance
*/
public static CDI<Object> current() {
return getCDIProvider().getCDI();
}
代码示例来源:origin: weld/core
/**
* <p>
* Get the CDI instance that provides access to the current container.
* </p>
*
* <p>
* If there are no providers available, an {@link IllegalStateException} is thrown, otherwise the first provider which can
* access the container is used.
* </p>
*
* @throws IllegalStateException if no {@link CDIProvider} is available
* @return the CDI instance
*/
public static CDI<Object> current() {
return getCDIProvider().getCDI();
}
代码示例来源:origin: weld/core
/**
* <p>
* Get the CDI instance that provides access to the current container.
* </p>
*
* <p>
* If there are no providers available, an {@link IllegalStateException} is thrown, otherwise the first provider which can
* access the container is used.
* </p>
*
* @throws IllegalStateException if no {@link CDIProvider} is available
* @return the CDI instance
*/
public static CDI<Object> current() {
return getCDIProvider().getCDI();
}
代码示例来源:origin: jboss/jboss-javaee-specs
/**
* <p>
* Get the CDI instance that provides access to the current container.
* </p>
*
* <p>
* If there are no providers available, an {@link IllegalStateException} is thrown, otherwise the first provider which can
* access the container is used.
* </p>
*
* @throws IllegalStateException if no {@link CDIProvider} is available
* @return the CDI instance
*/
public static CDI<Object> current() {
return getCDIProvider().getCDI();
}
代码示例来源:origin: org.jboss.weld.se/weld-se-shaded
/**
* <p>
* Get the CDI instance that provides access to the current container.
* </p>
*
* <p>
* If there are no providers available, an {@link IllegalStateException} is thrown, otherwise the first provider which can
* access the container is used.
* </p>
*
* @throws IllegalStateException if no {@link CDIProvider} is available
* @return the CDI instance
*/
public static CDI<Object> current() {
return getCDIProvider().getCDI();
}
内容来源于网络,如有侵权,请联系作者删除!