KIE EAP - Maven plugin 6.1.0.Final

org.kie.integration.eap.maven.distribution
Class EAPXMLLayerDistribution

java.lang.Object
  extended by org.kie.integration.eap.maven.distribution.EAPXMLLayerDistribution
All Implemented Interfaces:
EAPLayerDistributionManager

@Component(role=EAPLayerDistributionManager.class)
public class EAPXMLLayerDistribution
extends Object
implements EAPLayerDistributionManager


Constructor Summary
EAPXMLLayerDistribution()
           
 
Method Summary
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.sonatype.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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EAPXMLLayerDistribution

public EAPXMLLayerDistribution()
Method Detail

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)

KIE EAP - Maven plugin 6.1.0.Final

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.