KIE EAP - Maven plugin 6.1.0.Final

org.kie.integration.eap.maven.template
Interface EAPTemplateBuilder

All Known Implementing Classes:
EAPVelocityTemplateBuilder

@Component(role=EAPTemplateBuilder.class)
public interface EAPTemplateBuilder


Method Summary
 String buildDynamicModuleAssembly(EAPAssemblyTemplate assemblyTemplate)
          Build the assembly descriptor file for a given dynamic module.
 String buildDynamicModuleDependency(String name)
          Build the jboss-all.xml descriptor to add a dependency from a dynamic module to another one.
 String buildGlobalAssembly(String layerId, String[] formats, String layerDescriptorFilePath, String[] componentDescriptorsFilePaths)
          Builds the assembly descriptor file from a template.
 String buildJbossDeploymentStructure(Collection<? extends EAPModuleGraphNodeDependency> dependencies)
          Build the jboss deployment structure descriptor file for a given dynamic module (jboss-deployment-structure.xml)
 String buildLayersConfiguration(EAPModulesGraph graph)
          Builds the layers.conf file from a template.
 String buildModuleAssemblyComponent(EAPModuleGraphNode node, String moduleDescriptorPath, String outputPath)
          Build the assembly component descriptor file for a given static module.
 String buildModuleDescriptor(EAPModuleGraphNode graph)
          Build the module descriptor file for a given static module (module.xml)
 

Method Detail

buildLayersConfiguration

String buildLayersConfiguration(EAPModulesGraph graph)
Builds the layers.conf file from a template.

Parameters:
graph - The modules graph.
Returns:
The layers.conf file.

buildGlobalAssembly

String buildGlobalAssembly(String layerId,
                           String[] formats,
                           String layerDescriptorFilePath,
                           String[] componentDescriptorsFilePaths)
Builds the assembly descriptor file from a template.

Parameters:
layerId - The layer if.
formats - The assembly formats to generate.
layerDescriptorFilePath - The path for the generated layer descriptor file.
componentDescriptorsFilePaths - The path for the generated assembly components descriptors (one for each module to assemble).
Returns:
The assembly descriptor file from a template.

buildModuleAssemblyComponent

String buildModuleAssemblyComponent(EAPModuleGraphNode node,
                                    String moduleDescriptorPath,
                                    String outputPath)
Build the assembly component descriptor file for a given static module.

Parameters:
node - The module graph node.
moduleDescriptorPath - The path for the generated assembly component descriptor file.
outputPath - The output path to generate the files.
Returns:
The assembly component descriptor file.

buildModuleDescriptor

String buildModuleDescriptor(EAPModuleGraphNode graph)
Build the module descriptor file for a given static module (module.xml)

Parameters:
graph - The module graph node.
Returns:
The module descriptor file for a given static module (module.xml)

buildJbossDeploymentStructure

String buildJbossDeploymentStructure(Collection<? extends EAPModuleGraphNodeDependency> dependencies)
Build the jboss deployment structure descriptor file for a given dynamic module (jboss-deployment-structure.xml)

Parameters:
dependencies - The dynamic module dependencies to add in the generated jboss deployment structure.
Returns:
The jboss deployment structure descriptor file for a given dynamic module (jboss-deployment-structure.xml)

buildDynamicModuleAssembly

String buildDynamicModuleAssembly(EAPAssemblyTemplate assemblyTemplate)
Build the assembly descriptor file for a given dynamic module.

Parameters:
assemblyTemplate - The assembly model.
Returns:
The assembly descriptor file for a given dynamic module.

buildDynamicModuleDependency

String buildDynamicModuleDependency(String name)
Build the jboss-all.xml descriptor to add a dependency from a dynamic module to another one.

Parameters:
name - The dependant module name.
Returns:
the jboss-all.xml descriptor content.

KIE EAP - Maven plugin 6.1.0.Final

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