org.kie.integration.eap.maven.distribution
Class EAPXMLLayerDistribution
java.lang.Object
org.kie.integration.eap.maven.distribution.EAPXMLLayerDistribution
- All Implemented Interfaces:
- EAPLayerDistributionManager
@Component(role=EAPLayerDistributionManager.class)
public class EAPXMLLayerDistribution
- extends Object
- implements EAPLayerDistributionManager
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EAPXMLLayerDistribution
public EAPXMLLayerDistribution()
read
public EAPStaticLayerDistribution read(Object input)
throws Exception
- Description copied from interface:
EAPLayerDistributionManager
- Reads a static layer model from a given input.
- Specified by:
read
in interface EAPLayerDistributionManager
- Parameters:
input
- The source object (file,etc)
- Returns:
- The layer distribution model.
- Throws:
Exception
- Exception parsing the input.
parseModule
protected EAPModuleGraphNode parseModule(Node module)
parseProperty
protected String[] parseProperty(Node node)
parseResource
protected EAPModuleGraphNodeResource parseResource(Node node)
parseModuleArtifact
protected org.sonatype.aether.artifact.Artifact parseModuleArtifact(Node node)
parseDependency
protected EAPModuleGraphNodeDependency parseDependency(Node node)
write
public Object write(EAPStaticLayerDistribution distro)
throws Exception
- Description copied from interface:
EAPLayerDistributionManager
- Generates a persistence object from a static layer model.
- Specified by:
write
in interface EAPLayerDistributionManager
- Parameters:
distro
- The distribution to persist.
- Returns:
- The persistence oject (can differ from each implementation).
- Throws:
Exception
- Exception writing the output.
writeDistro
protected String writeDistro(EAPXMLUtils eapxmlUtils)
throws TransformerException,
IOException
- Throws:
TransformerException
IOException
writeDistributionProperties
protected void writeDistributionProperties(EAPXMLUtils eapxmlUtils,
EAPStaticLayerDistribution distro)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
createResource
protected Element createResource(EAPXMLUtils eapxmlUtils,
Element parent,
EAPModuleGraphNodeResource resource)
createDependency
protected Element createDependency(EAPXMLUtils eapxmlUtils,
Element parent,
EAPModuleGraphNodeDependency dependency)
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.