public class Container extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
Container.InitContext
Initialization Context to be passed to Fractions to allow them to provide
additional functionality into the Container.
|
| Constructor and Description |
|---|
Container()
Construct a new, un-started container.
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyFractionDefaults(Server server) |
<T extends org.jboss.shrinkwrap.api.Archive> |
create(String name,
Class<T> type)
Create a ShrinkWrap archive with a given name and type.
|
Container |
deploy()
Deploy the default WAR deployment.
|
Container |
deploy(org.jboss.shrinkwrap.api.Archive deployment)
Deploy an archive.
|
Container |
deploy(Deployment deployment)
Deploy a deployment
|
Container |
fraction(Fraction fraction)
Add a fraction to the container.
|
List<Fraction> |
fractions() |
org.jboss.shrinkwrap.api.Domain |
getShrinkWrapDomain()
Retrieve the ShrinkWrap domain for creating archives.
|
Container |
iface(String name,
String expression)
Configure a network interface.
|
List<Interface> |
ifaces() |
Container |
socketBindingGroup(SocketBindingGroup group)
Configure a socket-binding-group.
|
List<SocketBindingGroup> |
socketBindingGroups() |
Container |
start()
Start the container.
|
Container |
start(Deployment deployment)
Start the container with a deployment.
|
Container |
stop()
Stop the container, undeploying all deployments.
|
Container |
subsystem(Fraction fraction)
Add a fraction to the container.
|
public org.jboss.shrinkwrap.api.Domain getShrinkWrapDomain()
create(String, Class)public void applyFractionDefaults(Server server) throws Exception
Exceptionpublic Container subsystem(Fraction fraction)
fraction - The fraction to add.public Container fraction(Fraction fraction)
fraction - The fraction to add.public Container iface(String name, String expression)
name - The name of the interface.expression - The expression to define the interface.public Container socketBindingGroup(SocketBindingGroup group)
group - The socket-binding group to add.public List<SocketBindingGroup> socketBindingGroups()
public Container start() throws Exception
Exception - if an error occurs.public Container stop() throws Exception
Exception - If an error occurs.public Container start(Deployment deployment) throws Exception
Effectively calls start().deploy(deployment)
deployment - The deployment to deploy.Exception - if an error occurs.start(),
deploy(Deployment)public <T extends org.jboss.shrinkwrap.api.Archive> T create(String name, Class<T> type)
T - An interface of a ShrinkWrap archive type.name - The name of the archive.type - The type of the archive.public Container deploy() throws Exception
For WAR-based applications, the primary WAR artifact iwll be deployed.
Exception - if an error occurs.public Container deploy(org.jboss.shrinkwrap.api.Archive deployment) throws Exception
deployment - The ShrinkWrap archive to deploy.Exception - if an error occurs.public Container deploy(Deployment deployment) throws Exception
deployment - The deployment to deploy.Exception - if an error occurs.Copyright © 2015 JBoss by Red Hat. All rights reserved.