@Component(role=EAPTemplateBuilder.class, hint="velocity") public class EAPVelocityTemplateBuilder extends Object implements EAPTemplateBuilder
| Modifier and Type | Class and Description |
|---|---|
static class |
EAPVelocityTemplateBuilder.EAPBaseDependency |
static class |
EAPVelocityTemplateBuilder.EAPParent |
| Constructor and Description |
|---|
EAPVelocityTemplateBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static String |
buildBasicPom(String groupId,
String artifactId,
String version,
String packaging,
String name,
Collection<EAPVelocityTemplateBuilder.EAPBaseDependency> dependencies,
Collection<String> modules,
EAPVelocityTemplateBuilder.EAPParent parent,
Map<String,String> properties) |
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 node)
Build the module descriptor file for a given static module (module.xml)
|
protected static org.apache.velocity.VelocityContext |
createContext() |
protected org.apache.velocity.VelocityContext |
createContext(EAPModuleGraphNode node) |
protected static org.apache.velocity.Template |
getTemplate(String name,
String path) |
public String buildLayersConfiguration(EAPModulesGraph graph)
EAPTemplateBuilderbuildLayersConfiguration in interface EAPTemplateBuildergraph - The modules graph.public String buildGlobalAssembly(String layerId, String[] formats, String layerDescriptorFilePath, String[] componentDescriptorsFilePaths)
EAPTemplateBuilderbuildGlobalAssembly in interface EAPTemplateBuilderlayerId - 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).public String buildModuleAssemblyComponent(EAPModuleGraphNode node, String moduleDescriptorPath, String outputPath)
EAPTemplateBuilderbuildModuleAssemblyComponent in interface EAPTemplateBuildernode - The module graph node.moduleDescriptorPath - The path for the generated assembly component descriptor file.outputPath - The output path to generate the files.public String buildModuleDescriptor(EAPModuleGraphNode node)
EAPTemplateBuilderbuildModuleDescriptor in interface EAPTemplateBuildernode - The module graph node.public String buildJbossDeploymentStructure(Collection<? extends EAPModuleGraphNodeDependency> dependencies)
EAPTemplateBuilderbuildJbossDeploymentStructure in interface EAPTemplateBuilderdependencies - The dynamic module dependencies to add in the generated jboss deployment structure.public String buildDynamicModuleAssembly(EAPAssemblyTemplate assemblyTemplate)
EAPTemplateBuilderbuildDynamicModuleAssembly in interface EAPTemplateBuilderassemblyTemplate - The assembly model.public String buildDynamicModuleDependency(String name)
EAPTemplateBuilderbuildDynamicModuleDependency in interface EAPTemplateBuildername - The dependant module name.public static String buildBasicPom(String groupId, String artifactId, String version, String packaging, String name, Collection<EAPVelocityTemplateBuilder.EAPBaseDependency> dependencies, Collection<String> modules, EAPVelocityTemplateBuilder.EAPParent parent, Map<String,String> properties)
protected org.apache.velocity.VelocityContext createContext(EAPModuleGraphNode node)
protected static org.apache.velocity.VelocityContext createContext()
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.