|
||||||||||
| 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 |
|---|
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(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. |
protected void |
createMetaData(DeploymentUnit unit,
Set<String> names,
String suffix)
Create some meta data. |
protected void |
createMetaData(DeploymentUnit unit,
Set<String> names,
String suffix,
String key)
Create some meta data. |
protected void |
createMetaData(DeploymentUnit unit,
String name,
String suffix)
Create some meta data. |
protected void |
createMetaData(DeploymentUnit unit,
String name,
String suffix,
String key)
Create some meta data. |
void |
deploy(DeploymentUnit unit)
Deploy a deployment |
protected String |
getAttachmentKey()
Get attachment key. |
String |
getJarExtension()
Get the jar extension. |
protected T |
getMetaData(DeploymentUnit unit,
String key)
Get some meta data |
String |
getName()
Get the name. |
Set<String> |
getNames()
Get the names. |
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(DeploymentUnit unit,
Set<String> names,
String suffix,
T root)
Parse exact file names or look for a suffix |
protected abstract T |
parse(DeploymentUnit unit,
Set<String> names,
T root)
Parse an multiple exact file names |
protected abstract T |
parse(DeploymentUnit unit,
String name,
String suffix,
T root)
Parse an exact file name or look for a suffix |
protected abstract T |
parse(DeploymentUnit unit,
String name,
T root)
Parse an exact file name |
void |
setAttachmentKey(String attachmentKey)
Set attachment key. |
void |
setBuildManagedObject(boolean buildManagedObject)
|
void |
setIncludeDeploymentFile(boolean includeDeploymentFile)
Set the includeDeploymentFile. |
void |
setJarExtension(String jarExtension)
Set the jar extension. |
void |
setName(String name)
Set the name. |
void |
setNames(Set<String> names)
Set the names. |
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, isAllInputs, isComponentsOnly, isParentFirst, isTopLevelOnly, isWantComponents, setAllInputs, setComponentsOnly, setInput, setInputs, setInputs, setInputs, setOutput, setOutputs, setOutputs, setOutputs, setParentFirst, setRelativeOrder, setStage, setTopLevelOnly, 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 Set<String> getNames()
public void setNames(Set<String> names)
names - the names.public String getSuffix()
public void setSuffix(String suffix)
suffix - the suffix.public String getJarExtension()
getJarExtension in interface JarExtensionProviderpublic void setJarExtension(String jarExtension)
jarExtension - the jar extensionpublic boolean isIncludeDeploymentFile()
public void setIncludeDeploymentFile(boolean includeDeploymentFile)
includeDeploymentFile - the includeDeploymentFile.public boolean isBuildManagedObject()
public void setBuildManagedObject(boolean buildManagedObject)
protected boolean allowsReparse()
public void deploy(DeploymentUnit unit)
throws DeploymentException
Deployer
deploy in interface Deployerunit - the unit
DeploymentException - for any error
protected boolean accepts(DeploymentUnit unit)
throws DeploymentException
unit - the unit
DeploymentException - for any error
protected T getMetaData(DeploymentUnit unit,
String key)
unit - the deployment unitkey - the key into the managed objects
protected String getAttachmentKey()
public void setAttachmentKey(String attachmentKey)
attachmentKey - the attachment key
protected void createMetaData(DeploymentUnit unit,
String name,
String suffix)
throws DeploymentException
unit - the deployment unitname - the namesuffix - the suffix
DeploymentException - for any error
protected void createMetaData(DeploymentUnit unit,
Set<String> names,
String suffix)
throws DeploymentException
unit - the deployment unitnames - the namessuffix - the suffix
DeploymentException - for any error
protected void createMetaData(DeploymentUnit unit,
String name,
String suffix,
String key)
throws DeploymentException
unit - the deployment unitname - the namesuffix - the suffixkey - the key into the managed objects
DeploymentException - for any error
protected void createMetaData(DeploymentUnit unit,
Set<String> names,
String suffix,
String key)
throws DeploymentException
unit - the deployment unitnames - the namessuffix - the suffixkey - the key into the managed objects
DeploymentException - for any error
protected abstract T parse(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(DeploymentUnit unit,
Set<String> names,
T root)
throws Exception
unit - the unitnames - the exact names to matchroot - - possibly null pre-existing root
Exception - for any error
protected abstract T parse(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
protected abstract T parse(DeploymentUnit unit,
Set<String> names,
String suffix,
T root)
throws Exception
unit - the unitnames - the exact names to matchsuffix - the suffix to matchroot - - possibly null pre-existing root
Exception - for any error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||