@Component(role=EAPLayerDistributionManager.class) public class EAPXMLLayerDistribution extends Object implements EAPLayerDistributionManager
| Constructor and Description |
|---|
EAPXMLLayerDistribution() |
| Modifier and Type | Method and Description |
|---|---|
protected Element |
createDependency(EAPXMLUtils eapxmlUtils,
Element parent,
EAPModuleGraphNodeDependency dependency) |
protected Element |
createResource(EAPXMLUtils eapxmlUtils,
Element parent,
EAPModuleGraphNodeResource resource) |
protected EAPModuleGraphNodeDependency |
parseDependency(Node node) |
protected EAPModuleGraphNode |
parseModule(Node module) |
protected org.eclipse.aether.artifact.Artifact |
parseModuleArtifact(Node node) |
protected String[] |
parseProperty(Node node) |
protected EAPModuleGraphNodeResource |
parseResource(Node node) |
EAPStaticLayerDistribution |
read(Object input)
Reads a static layer model from a given input.
|
Object |
write(EAPStaticLayerDistribution distro)
Generates a persistence object from a static layer model.
|
protected void |
writeDistributionProperties(EAPXMLUtils eapxmlUtils,
EAPStaticLayerDistribution distro) |
protected String |
writeDistro(EAPXMLUtils eapxmlUtils) |
public EAPStaticLayerDistribution read(Object input) throws Exception
EAPLayerDistributionManagerread in interface EAPLayerDistributionManagerinput - The source object (file,etc)Exception - Exception parsing the input.protected EAPModuleGraphNode parseModule(Node module)
protected EAPModuleGraphNodeResource parseResource(Node node)
protected org.eclipse.aether.artifact.Artifact parseModuleArtifact(Node node)
protected EAPModuleGraphNodeDependency parseDependency(Node node)
public Object write(EAPStaticLayerDistribution distro) throws Exception
EAPLayerDistributionManagerwrite in interface EAPLayerDistributionManagerdistro - The distribution to persist.Exception - Exception writing the output.protected String writeDistro(EAPXMLUtils eapxmlUtils) throws TransformerException, IOException
TransformerExceptionIOExceptionprotected void writeDistributionProperties(EAPXMLUtils eapxmlUtils, EAPStaticLayerDistribution distro) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected Element createResource(EAPXMLUtils eapxmlUtils, Element parent, EAPModuleGraphNodeResource resource)
protected Element createDependency(EAPXMLUtils eapxmlUtils, Element parent, EAPModuleGraphNodeDependency dependency)
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.