public abstract class DeploymentBuilder<T extends DeploymentBuilder<? super T>> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.jboss.as.controller.client.ModelControllerClient |
client |
| Modifier | Constructor and Description |
|---|---|
protected |
DeploymentBuilder(org.jboss.as.controller.client.ModelControllerClient client) |
| Modifier and Type | Method and Description |
|---|---|
Deployment |
build()
Builds the deployment.
|
protected abstract Deployment |
doBuild() |
protected File |
getContent()
Gets the content for the deployment which may be
null when this is an undeploy action. |
protected String |
getMatchPattern() |
protected MatchPatternStrategy |
getMatchPatternStrategy() |
protected String |
getName() |
protected String |
getRuntimeName() |
protected abstract T |
getThis() |
protected Deployment.Type |
getType() |
T |
setContent(File content)
Sets the content to be deployed.
|
T |
setMatchPattern(String matchPattern)
Sets the pattern used for validating multiple deployment matching.
|
T |
setMatchPatternStrategy(MatchPatternStrategy matchPatternStrategy)
Sets the strategy to use for validating multiple deployment matching.
|
T |
setName(String name)
Sets the name for this deployment.
|
T |
setRuntimeName(String runtimeName)
Sets the runtime name to use for the deployment.
|
T |
setType(Deployment.Type type)
Sets the type for the deployment.
|
protected void |
validate() |
protected DeploymentBuilder(org.jboss.as.controller.client.ModelControllerClient client)
public Deployment build()
protected File getContent()
null when this is an undeploy action.nullpublic T setContent(File content)
content - the content do be deployedprotected String getName()
public T setName(String name)
name - the name for this deploymentprotected String getRuntimeName()
public T setRuntimeName(String runtimeName)
runtimeName - the deployments runtime nameprotected Deployment.Type getType()
public T setType(Deployment.Type type)
type - the deployment typeprotected String getMatchPattern()
public T setMatchPattern(String matchPattern)
matchPattern - the pattern to useprotected MatchPatternStrategy getMatchPatternStrategy()
public T setMatchPatternStrategy(MatchPatternStrategy matchPatternStrategy)
matchPatternStrategy - the strategy to useprotected abstract T getThis()
protected abstract Deployment doBuild()
protected void validate()
Copyright © 2016 JBoss by Red Hat. All rights reserved.