本文整理汇总了Java中io.vertx.resourceadapter.VertxConnectionFactory类的典型用法代码示例。如果您正苦于以下问题:Java VertxConnectionFactory类的具体用法?Java VertxConnectionFactory怎么用?Java VertxConnectionFactory使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
VertxConnectionFactory类属于io.vertx.resourceadapter包,在下文中一共展示了VertxConnectionFactory类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testVertxConnectionFactoryIsInjected
import io.vertx.resourceadapter.VertxConnectionFactory; //导入依赖的package包/类
@Test
public void testVertxConnectionFactoryIsInjected() {
Assert.assertThat(vertxProvider, notNullValue());
VertxConnectionFactory connectionFactory = vertxProvider.getConnectionFactory();
Assert.assertThat(connectionFactory, notNullValue());
Assert.assertThat(connectionFactory.getClass().getClassLoader(), not(equalTo(getClass().getClassLoader())));
}
示例2: createDeployment
import io.vertx.resourceadapter.VertxConnectionFactory; //导入依赖的package包/类
@Deployment
public static ResourceAdapterArchive createDeployment() {
ResourceAdapterArchive raa = ShrinkWrap.create(
ResourceAdapterArchive.class, DEPLOYMENT_NAME + ".rar");
JavaArchive ja = ShrinkWrap.create(JavaArchive.class, UUID.randomUUID()
.toString() + ".jar");
ja.addClasses(VertxResourceAdapter.class,
VertxManagedConnectionFactory.class, VertxManagedConnection.class,
VertxConnectionFactory.class, VertxConnectionFactoryImpl.class,
VertxConnection.class, VertxConnectionImpl.class);
raa.addAsLibrary(ja);
raa.addAsManifestResource("META-INF/ironjacamar.xml", "ironjacamar.xml");
return raa;
}
示例3: getConnectionFactory
import io.vertx.resourceadapter.VertxConnectionFactory; //导入依赖的package包/类
public VertxConnectionFactory getConnectionFactory() {
return connectionFactory;
}