/** * Start the container. * * @return The container. * @throws Exception if an error occurs. */ public Container start() throws Exception { return start(false); }
@Override public Swarm start(boolean eagerlyOpen) throws Exception { return (Swarm) super.start(eagerlyOpen); }
@Override public Swarm start() throws Exception { return (Swarm) super.start(); }
@Override public Swarm start(Archive<?> deployment) throws Exception { return (Swarm) super.start(deployment); }
public static void factoryMain(ContainerFactory factory, String... args) throws Exception { factory.newContainer(args).start(); } }
public static void simpleMain(String... args) throws Exception { new Container().start(); }
/** * Start the container with a deployment. * <p/> * <p>Effectively calls {@code start().deploy(deployment)}</p> * * @param deployment The deployment to deploy. * @return The container. * @throws Exception if an error occurs. * @see #start() * @see #deploy(Archive) */ public Container start(Archive<?> deployment) throws Exception { return start().deploy(deployment); }
public static void simpleMain(String... args) throws Exception { new Container().start(); }
/** * Start the container with a deployment. * <p/> * <p>Effectively calls {@code start().deploy(deployment)}</p> * * @param deployment The deployment to deploy. * @return The container. * @throws Exception if an error occurs. * @see #start() * @see #deploy(Archive) */ public Container start(Archive<?> deployment) throws Exception { return start().deploy(deployment); }
public static void factoryMain(ContainerFactory factory, String... args) throws Exception { factory.newContainer(args).start(); } }
/** * Start the container with a deployment. * <p/> * <p>Effectively calls {@code start().deploy(deployment)}</p> * * @param deployment The deployment to deploy. * @return The container. * @throws Exception if an error occurs. * @see #start() * @see #deploy(Archive) */ public Container start(Archive deployment) throws Exception { return start().deploy(deployment); }
public static void simpleMain(String...args) throws Exception { Container container = new Swarm(args); container.start(); container.deploy(); }
public static void simpleMain(String...args) throws Exception { Container container = new Container().start(); container.deploy(); }
public static void factoryMain(ContainerFactory factory, String...args) throws Exception { Container container = factory.newContainer(args); container.start(); container.deploy(); }
public static void factoryMain(ContainerFactory factory, String... args) throws Exception { Container container = factory.newContainer(args).start(); container.deploy(); }
public static void simpleMain(String... args) throws Exception { Container container = new Container().start(); container.deploy(); }
public static void factoryMain(ContainerFactory factory, String...args) throws Exception { Container container = factory.newContainer(args).start(); container.deploy(); }
public static void main(String... args) throws Exception { Container container = new Container(); SwaggerWebAppFraction fraction = new SwaggerWebAppFraction(); fraction.addWebContent(System.getProperty("swarm.swagger.ui.resources")); container.fraction(fraction); container.start(); } }
public static void main(String... args) throws Exception { Container container = new Container(); container.fraction(ContainerUtils.loggingFraction()); System.setProperty(TopologyProperties.CONTEXT_PATH, "/topology-webapp"); TopologyWebAppFraction topologyWebAppFraction = new TopologyWebAppFraction(); topologyWebAppFraction.proxyService("store", "/store-proxy"); topologyWebAppFraction.proxyService("pricing", "/pricing-proxy"); topologyWebAppFraction.proxyService("library", "/library-proxy"); container.fraction(topologyWebAppFraction); container.start(); WARArchive war = ShrinkWrap.create(WARArchive.class); war.staticContent(); war.addAllDependencies(); war.addModule("org.wildfly.swarm.container"); container.deploy(war); } }
@Override public void start(Archive<?> archive) throws Exception { archive.as(ServiceActivatorArchive.class) .addServiceActivator(DaemonServiceActivator.class) .as(JARArchive.class) .addModule("org.wildfly.swarm.arquillian.daemon"); System.setProperty(BootstrapProperties.APP_ARTIFACT, archive.getName()); if (isContainerFactory(this.testClass)) { archive.as(JARArchive.class) .addModule("org.wildfly.swarm.container") .addModule("org.wildfly.swarm.configuration"); Object factory = this.testClass.newInstance(); this.container = ((ContainerFactory) factory).newContainer(); } else { this.container = new Container(); } this.container.start().deploy(archive); }