| Constructor and Description |
|---|
Container()
Construct a new, un-started container.
|
Container(boolean debugBootstrap)
Construct a new, un-started container.
|
Container(boolean debugBootstrap,
String... args)
Construct a new, un-started container, configured using command-line arguments.
|
Container(String... args)
Construct a new, un-started container, configured using command-line arguments.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyFractionDefaults(Server server) |
org.jboss.shrinkwrap.api.Archive<?> |
createDefaultDeployment()
Provides access to the default ShrinkWrap deployment.
|
org.wildfly.swarm.container.Container.PostInitContext |
createPostInitContext() |
Container |
deploy()
Deploy the default WAR deployment.
|
Container |
deploy(org.jboss.shrinkwrap.api.Archive<?> deployment)
Deploy an archive.
|
protected String |
determineDeploymentType() |
protected String |
determineDeploymentTypeInternal() |
Container |
fraction(org.wildfly.swarm.spi.api.Fraction fraction)
Add a fraction to the container.
|
Container |
fraction(Supplier<org.wildfly.swarm.spi.api.Fraction> supplier) |
List<org.wildfly.swarm.spi.api.Fraction> |
fractions() |
String[] |
getArgs()
Get the possibly null container main method arguments.
|
org.wildfly.swarm.spi.api.SocketBindingGroup |
getSocketBindingGroup(String name) |
boolean |
hasStageConfig() |
Container |
iface(String name,
String expression)
Configure a network interface.
|
List<Interface> |
ifaces() |
static boolean |
isFatJar() |
Map<String,List<org.wildfly.swarm.spi.api.OutboundSocketBinding>> |
outboundSocketBindings() |
void |
setArgs(String[] args)
Set the main method arguments.
|
Container |
socketBindingGroup(org.wildfly.swarm.spi.api.SocketBindingGroup group)
Configure a socket-binding-group.
|
List<org.wildfly.swarm.spi.api.SocketBindingGroup> |
socketBindingGroups() |
Map<String,List<org.wildfly.swarm.spi.api.SocketBinding>> |
socketBindings() |
org.wildfly.swarm.spi.api.StageConfig |
stageConfig() |
Container |
start()
Start the container.
|
Container |
start(org.jboss.shrinkwrap.api.Archive<?> deployment)
Start the container with a deployment.
|
Container |
start(boolean eagerlyOpen) |
Container |
stop()
Stop the container, undeploying all deployments.
|
Container |
withStageConfig(URL url) |
Container |
withXmlConfig(URL url) |
public static final String VERSION
public Container()
throws Exception
Exception - If an error occurs performing classloading and initialization magic.public Container(boolean debugBootstrap)
throws Exception
debugBootstrap - - flag to indicate if the module layer should be put into bootstrap debug mode. Same as
the jboss-module -debuglog mode which enables trace logging to System.out during the
initial bootstrap of the module layer.Exception - If an error occurs performing classloading and initialization magic.public Container(String... args) throws Exception
args - The command-line arguments argumentsException - If an error occurs performing classloading and initialization magic.public Container(boolean debugBootstrap,
String... args)
throws Exception
debugBootstrap - - flag to indicate if the module layer should be put into bootstrap debug mode. Same as
the jboss-module -debuglog mode which enables trace logging to System.out during the
initial bootstrap of the module layer.args - The command-line arguments argumentsException - If an error occurs performing classloading and initialization magic.public org.wildfly.swarm.spi.api.StageConfig stageConfig()
public boolean hasStageConfig()
public static boolean isFatJar()
throws IOException
IOExceptionpublic void applyFractionDefaults(Server server) throws Exception
Exceptionpublic Container fraction(org.wildfly.swarm.spi.api.Fraction fraction)
fraction - The fraction to add.public List<org.wildfly.swarm.spi.api.Fraction> fractions()
public Container iface(String name, String expression)
name - The name of the interface.expression - The expression to define the interface.public Container socketBindingGroup(org.wildfly.swarm.spi.api.SocketBindingGroup group)
group - The socket-binding group to add.public List<org.wildfly.swarm.spi.api.SocketBindingGroup> socketBindingGroups()
public org.wildfly.swarm.spi.api.SocketBindingGroup getSocketBindingGroup(String name)
public Map<String,List<org.wildfly.swarm.spi.api.OutboundSocketBinding>> outboundSocketBindings()
public Container start() throws Exception
Exception - if an error occurs.public Container stop() throws Exception
Exception - If an error occurs.public Container start(org.jboss.shrinkwrap.api.Archive<?> deployment) throws Exception
Effectively calls start().deploy(deployment)
deployment - The deployment to deploy.Exception - if an error occurs.start(),
deploy(Archive)public Container deploy() throws DeploymentException
For WAR-based applications, the primary WAR artifact iwll be deployed.
DeploymentException - if an error occurs.public Container deploy(org.jboss.shrinkwrap.api.Archive<?> deployment) throws DeploymentException
deployment - The ShrinkWrap archive to deploy.DeploymentException - if an error occurs.public String[] getArgs()
public void setArgs(String[] args)
args - arguments passed to the main(String[]) method.public org.wildfly.swarm.container.Container.PostInitContext createPostInitContext()
public org.jboss.shrinkwrap.api.Archive<?> createDefaultDeployment()
protected String determineDeploymentType() throws IOException
IOExceptionprotected String determineDeploymentTypeInternal() throws IOException
IOExceptionCopyright © 2016 JBoss by Red Hat. All rights reserved.