|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.deployers.spi.deployer.helpers.AbstractDeployer
org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployer
org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput<T>
T - the type of outputpublic abstract class AbstractParsingDeployerWithOutput<T>
AbstractParsingDeployerWithOutput.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.jboss.deployers.spi.Ordered |
|---|
org.jboss.deployers.spi.Ordered.OrderedComparator |
| Field Summary |
|---|
| Fields inherited from class org.jboss.deployers.spi.deployer.helpers.AbstractDeployer |
|---|
log |
| Fields inherited from interface org.jboss.deployers.spi.Ordered |
|---|
COMPARATOR |
| Constructor Summary | |
|---|---|
AbstractParsingDeployerWithOutput(Class<T> output)
Create a new AbstractParsingDeployerWithOutput. |
|
| Method Summary | |
|---|---|
protected boolean |
accepts(org.jboss.deployers.structure.spi.DeploymentUnit unit)
Callback to do prechecking on the deployment |
protected boolean |
allowsReparse()
A flag indicating whether createMetaData should execute a parse even if a non-null metadata value exists. |
void |
build(org.jboss.deployers.structure.spi.DeploymentUnit unit,
Map<String,org.jboss.managed.api.ManagedObject> managedObjects)
Build managed object. |
protected void |
createMetaData(org.jboss.deployers.structure.spi.DeploymentUnit unit,
String name,
String suffix)
Create some meta data. |
protected void |
createMetaData(org.jboss.deployers.structure.spi.DeploymentUnit unit,
String name,
String suffix,
String key)
Create some meta data. |
void |
deploy(org.jboss.deployers.structure.spi.DeploymentUnit unit)
Deploy a deployment |
protected T |
getMetaData(org.jboss.deployers.structure.spi.DeploymentUnit unit,
String key)
Get some meta data |
String |
getName()
Get the name. |
Class<T> |
getOutput()
Get the otput for this deployer |
String |
getSuffix()
Get the suffix. |
boolean |
isBuildManagedObject()
|
boolean |
isIncludeDeploymentFile()
Get the includeDeploymentFile. |
protected abstract T |
parse(org.jboss.deployers.structure.spi.DeploymentUnit unit,
String name,
String suffix,
T root)
Parse an exact file name or look for a suffix |
protected abstract T |
parse(org.jboss.deployers.structure.spi.DeploymentUnit unit,
String name,
T root)
Parse an exact file name |
void |
setBuildManagedObject(boolean buildManagedObject)
|
void |
setIncludeDeploymentFile(boolean includeDeploymentFile)
Set the includeDeploymentFile. |
void |
setName(String name)
Set the name. |
void |
setSuffix(String suffix)
Set the suffix. |
| Methods inherited from class org.jboss.deployers.spi.deployer.helpers.AbstractDeployer |
|---|
addInput, addInput, addOutput, addOutput, getInput, getInputs, getOutputs, getRelativeOrder, getStage, getType, isAllInputs, isComponentsOnly, isParentFirst, isTopLevelOnly, isWantComponents, setAllInputs, setComponentsOnly, setInput, setInputs, setInputs, setInputs, setOutput, setOutputs, setOutputs, setOutputs, setParentFirst, setRelativeOrder, setStage, setTopLevelOnly, setType, setWantComponents, undeploy |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractParsingDeployerWithOutput(Class<T> output)
output - the type of output
IllegalArgumentException - for null output| Method Detail |
|---|
public Class<T> getOutput()
Deployer
getOutput in interface DeployergetOutput in class AbstractDeployerpublic String getName()
public void setName(String name)
name - the name.public String getSuffix()
public void setSuffix(String suffix)
suffix - the suffix.public boolean isIncludeDeploymentFile()
public void setIncludeDeploymentFile(boolean includeDeploymentFile)
includeDeploymentFile - the includeDeploymentFile.public boolean isBuildManagedObject()
public void setBuildManagedObject(boolean buildManagedObject)
protected boolean allowsReparse()
public void deploy(org.jboss.deployers.structure.spi.DeploymentUnit unit)
throws org.jboss.deployers.spi.DeploymentException
Deployer
deploy in interface Deployerunit - the unit
org.jboss.deployers.spi.DeploymentException - for any error
protected boolean accepts(org.jboss.deployers.structure.spi.DeploymentUnit unit)
throws org.jboss.deployers.spi.DeploymentException
unit - the unit
org.jboss.deployers.spi.DeploymentException - for any error
protected T getMetaData(org.jboss.deployers.structure.spi.DeploymentUnit unit,
String key)
unit - the deployment unitkey - the key into the managed objects
protected void createMetaData(org.jboss.deployers.structure.spi.DeploymentUnit unit,
String name,
String suffix)
throws org.jboss.deployers.spi.DeploymentException
unit - the deployment unitname - the namesuffix - the suffix
org.jboss.deployers.spi.DeploymentException - for any error
protected void createMetaData(org.jboss.deployers.structure.spi.DeploymentUnit unit,
String name,
String suffix,
String key)
throws org.jboss.deployers.spi.DeploymentException
unit - the deployment unitname - the namesuffix - the suffixkey - the key into the managed objects
org.jboss.deployers.spi.DeploymentException - for any error
protected abstract T parse(org.jboss.deployers.structure.spi.DeploymentUnit unit,
String name,
T root)
throws Exception
unit - the unitname - the exact name to matchroot - - possibly null pre-existing root
Exception - for any error
protected abstract T parse(org.jboss.deployers.structure.spi.DeploymentUnit unit,
String name,
String suffix,
T root)
throws Exception
unit - the unitname - the exact name to matchsuffix - the suffix to matchroot - - possibly null pre-existing root
Exception - for any error
public void build(org.jboss.deployers.structure.spi.DeploymentUnit unit,
Map<String,org.jboss.managed.api.ManagedObject> managedObjects)
throws org.jboss.deployers.spi.DeploymentException
build in interface ManagedObjectCreatorunit - the deployment unitmanagedObjects - map of managed objects
org.jboss.deployers.spi.DeploymentException - for any deployment exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||