public class Swarm extends Object
main(...) if an application does not provide one.
This simply constructs a default container, starts it and performs a default deployment. Typically only useful for barren WAR applications.
| Modifier and Type | Field and Description |
|---|---|
static ArtifactManager |
ARTIFACT_MANAGER |
| Constructor and Description |
|---|
Swarm() |
| Modifier and Type | Method and Description |
|---|---|
static List<org.jboss.shrinkwrap.api.spec.JavaArchive> |
allArtifacts() |
static org.jboss.shrinkwrap.api.spec.JavaArchive |
artifact(String gav) |
static org.jboss.shrinkwrap.api.spec.JavaArchive |
artifact(String gav,
String asName) |
static ArtifactManager |
artifactManager() |
static void |
factoryMain(ContainerFactory factory,
String... args) |
static void |
main(String... args)
Main entry-point.
|
static void |
simpleMain(String... args) |
public static ArtifactManager ARTIFACT_MANAGER
public static void main(String... args) throws Exception
args - Ignored.Exception - if an error occurs.public static void factoryMain(ContainerFactory factory, String... args) throws Exception
Exceptionpublic static ArtifactManager artifactManager() throws IOException
IOExceptionpublic static org.jboss.shrinkwrap.api.spec.JavaArchive artifact(String gav) throws Exception
Exceptionpublic static org.jboss.shrinkwrap.api.spec.JavaArchive artifact(String gav, String asName) throws Exception
ExceptionCopyright © 2016 JBoss by Red Hat. All rights reserved.