本文整理汇总了Java中com.alibaba.dubbo.container.Container类的典型用法代码示例。如果您正苦于以下问题:Java Container类的具体用法?Java Container怎么用?Java Container使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
Container类属于com.alibaba.dubbo.container包,在下文中一共展示了Container类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testContainer
import com.alibaba.dubbo.container.Container; //导入依赖的package包/类
@Test
public void testContainer() {
LogbackContainer container = (LogbackContainer) ExtensionLoader.getExtensionLoader(Container.class)
.getExtension("logback");
container.start();
logger.debug("Test debug:" + this.getClass().getName());
logger.warn("Test warn:" + this.getClass().getName());
logger.info("Test info:" + this.getClass().getName());
logger.error("Test error:" + this.getClass().getName());
container.stop();
}
示例2: testContainer
import com.alibaba.dubbo.container.Container; //导入依赖的package包/类
@Test
public void testContainer() {
SpringContainer container = (SpringContainer) ExtensionLoader.getExtensionLoader(Container.class).getExtension("spring");
container.start();
Assert.assertEquals(SpringContainer.class, container.context.getBean("container").getClass());
container.stop();
}
示例3: testContainer
import com.alibaba.dubbo.container.Container; //导入依赖的package包/类
@Test
public void testContainer() {
JettyContainer container = (JettyContainer) ExtensionLoader.getExtensionLoader(Container.class).getExtension("jetty");
container.start();
Assert.assertTrue(container.connector.isStarted());
container.stop();
}
示例4: testContainer
import com.alibaba.dubbo.container.Container; //导入依赖的package包/类
@Test
public void testContainer() {
JavaConfigContainer container = (JavaConfigContainer) ExtensionLoader.getExtensionLoader(Container.class).getExtension("javaconfig");
container.start();
Assert.assertEquals(JavaConfigContainer.class, container.context.getBean("container").getClass());
container.stop();
}