当前位置: 首页>>代码示例>>Java>>正文


Java Deployer类代码示例

本文整理汇总了Java中org.jboss.arquillian.container.test.api.Deployer的典型用法代码示例。如果您正苦于以下问题:Java Deployer类的具体用法?Java Deployer怎么用?Java Deployer使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


Deployer类属于org.jboss.arquillian.container.test.api包,在下文中一共展示了Deployer类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: start

import org.jboss.arquillian.container.test.api.Deployer; //导入依赖的package包/类
public static void start(ContainerController controller, Deployer deployer, String container, String deployment) {
    try {
        log.info("Starting deployment=" + deployment + ", container=" + container);
        controller.start(container);
        deployer.deploy(deployment);
        log.info("Started deployment=" + deployment + ", container=" + container);
    } catch (Throwable e) {
        log.error("Failed to start container(s)", e);
    }
}
 
开发者ID:PacktPublishing,项目名称:Mastering-Java-EE-Development-with-WildFly,代码行数:11,代码来源:NodeUtil.java

示例2: stop

import org.jboss.arquillian.container.test.api.Deployer; //导入依赖的package包/类
public static void stop(ContainerController controller, Deployer deployer, String container, String deployment) {
    try {
        log.info("Stopping deployment=" + deployment + ", container=" + container);
        deployer.undeploy(deployment);
        controller.stop(container);
        log.info("Stopped deployment=" + deployment + ", container=" + container);
    } catch (Throwable e) {
        log.error("Failed to stop containers", e);
    }
}
 
开发者ID:PacktPublishing,项目名称:Mastering-Java-EE-Development-with-WildFly,代码行数:11,代码来源:NodeUtil.java

示例3: deploy

import org.jboss.arquillian.container.test.api.Deployer; //导入依赖的package包/类
public static void deploy(Deployer deployer, String... deployments) {
    for (String deployment : deployments) {
        log.info("Deploying deployment=" + deployment);
        deployer.deploy(deployment);
    }
}
 
开发者ID:PacktPublishing,项目名称:Mastering-Java-EE-Development-with-WildFly,代码行数:7,代码来源:NodeUtil.java

示例4: undeploy

import org.jboss.arquillian.container.test.api.Deployer; //导入依赖的package包/类
public static void undeploy(Deployer deployer, String... deployments) {
    for (String deployment : deployments) {
        log.info("Undeploying deployment=" + deployment);
        deployer.undeploy(deployment);
    }
}
 
开发者ID:PacktPublishing,项目名称:Mastering-Java-EE-Development-with-WildFly,代码行数:7,代码来源:NodeUtil.java


注:本文中的org.jboss.arquillian.container.test.api.Deployer类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。