- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.projectodd.wunderboss.WunderBoss.options()
方法的一些代码示例,展示了WunderBoss.options()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WunderBoss.options()
方法的具体详情如下:
包路径:org.projectodd.wunderboss.WunderBoss
类名称:WunderBoss
方法名:options
暂无
代码示例来源:origin: org.projectodd.wunderboss/wunderboss-core
public static boolean inWildFly() {
return options().containsKey("service-registry");
}
代码示例来源:origin: org.projectodd.wunderboss/wunderboss-core
public static synchronized ExecutorService workerPool() {
if (workerExecutor == null) {
final String deploymentName = options().getString("deployment-name", "wunderboss");
workerExecutor = Executors.newCachedThreadPool(new ThreadFactory() {
private final AtomicLong counter = new AtomicLong(0);
@Override
public Thread newThread(Runnable r) {
return new Thread(r, String.format("%s-worker-%d",
deploymentName, counter.getAndIncrement()));
}
});
}
return workerExecutor;
}
代码示例来源:origin: org.projectodd.wunderboss/wunderboss-wildfly-transactions
private TransactionManager getWildFlyTransactionManager() {
ServiceRegistry serviceRegistry = (ServiceRegistry) WunderBoss.options().get("service-registry");
return (TransactionManager) serviceRegistry.getRequiredService(TRANSACTION_MANAGER).getValue();
}
}
代码示例来源:origin: org.projectodd.wunderboss/wunderboss-wildfly-caching
private EmbeddedCacheManager getWebCacheManager() {
ServiceRegistry serviceRegistry = (ServiceRegistry) WunderBoss.options().get("service-registry");
return (EmbeddedCacheManager) serviceRegistry.getRequiredService(WEB_CACHE_MANAGER).getValue();
}
代码示例来源:origin: org.projectodd.wunderboss/wunderboss-web-undertow
protected HttpHandler wrapWithStaticHandler(HttpHandler baseHandler, String path) {
path = WunderBoss.options().get("root", "").toString() + File.separator + path;
代码示例来源:origin: org.projectodd.wunderboss/wunderboss-wildfly-messaging
@Override
public Messaging create(String name, Options options) {
final WunderBossService service = (WunderBossService)WunderBoss.options().get(WunderBossService.KEY);
ASDestinationManager destManager;
if (ASUtils.containerIsEAP6()) {
destManager = new EAPDestinationManager(service.serviceTarget(),
ASUtils.messagingServiceName(),
service.namingContext());
} else {
destManager = new WildFlyDestinationManager(service.serviceTarget(),
ASUtils.messagingServiceName());
}
return new ASMessaging(name, service, destManager, options);
}
}
本文整理了Java中org.projectodd.wunderboss.WunderBoss.registerComponentProvider()方法的一些代码示例,展示了WunderBoss.re
本文整理了Java中org.projectodd.wunderboss.WunderBoss.options()方法的一些代码示例,展示了WunderBoss.options()的具体用法。这些代码示
本文整理了Java中org.projectodd.wunderboss.WunderBoss.classLoader()方法的一些代码示例,展示了WunderBoss.classLoader()的具体
本文整理了Java中org.projectodd.wunderboss.WunderBoss类的一些代码示例,展示了WunderBoss类的具体用法。这些代码示例主要来源于Github/Stackov
我是一名优秀的程序员,十分优秀!