KIE EAP - Maven plugin 6.1.0.Final

org.kie.integration.eap.maven.model.graph.flat
Class EAPModulesFlatGraph

java.lang.Object
  extended by org.kie.integration.eap.maven.model.graph.flat.EAPModulesFlatGraph
All Implemented Interfaces:
EAPModulesGraph

public class EAPModulesFlatGraph
extends Object
implements EAPModulesGraph

This kind of module graph considers: - No module dependencies are NOT exported (except the static ones forced to export in the module definition) - So each module depends on all modules as its model dependencies are.


Field Summary
static String DEPENDENCY_SEPARATOR
           
 
Constructor Summary
EAPModulesFlatGraph(String distributionName, EAPLayer layer)
           
 
Method Summary
 String getDistributionName()
          The distribution name.
protected  Collection<EAPModule> getModulesReferenced(Collection<EAPModule> modules)
          Obtain the modules that someother one depends on it.
protected  Collection<EAPModule> getModulesWithResources(Collection<EAPModule> modules)
          Obtain the modules that someother one depends on it.
 EAPModuleGraphNode getNode(String nodeUID)
          Get a module node by node UID.
 List<EAPModuleGraphNode> getNodes()
          Get root node.
 String print()
          Prints the graph model for all modules as text output.
static String print(EAPModule module)
           
static String print(EAPModuleDependency dependency)
           
static String print(EAPModuleResource resource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEPENDENCY_SEPARATOR

public static final String DEPENDENCY_SEPARATOR
See Also:
Constant Field Values
Constructor Detail

EAPModulesFlatGraph

public EAPModulesFlatGraph(String distributionName,
                           EAPLayer layer)
Method Detail

getNodes

public List<EAPModuleGraphNode> getNodes()
Description copied from interface: EAPModulesGraph
Get root node.

Specified by:
getNodes in interface EAPModulesGraph
Returns:

getNode

public EAPModuleGraphNode getNode(String nodeUID)
Description copied from interface: EAPModulesGraph
Get a module node by node UID.

Specified by:
getNode in interface EAPModulesGraph
Parameters:
nodeUID - The node UID.
Returns:
The module node.

getDistributionName

public String getDistributionName()
Description copied from interface: EAPModulesGraph
The distribution name.

Specified by:
getDistributionName in interface EAPModulesGraph
Returns:
The distribution name.

getModulesReferenced

protected Collection<EAPModule> getModulesReferenced(Collection<EAPModule> modules)
Obtain the modules that someother one depends on it.

Parameters:
modules - The modules list.
Returns:
Usable modules to create for the distribution.

getModulesWithResources

protected Collection<EAPModule> getModulesWithResources(Collection<EAPModule> modules)
Obtain the modules that someother one depends on it.

Parameters:
modules - The modules list.
Returns:
Usable modules to create for the distribution.

print

public String print()
Description copied from interface: EAPModulesGraph
Prints the graph model for all modules as text output.

Specified by:
print in interface EAPModulesGraph
Returns:
The printed graph model for all modules.

print

public static String print(EAPModule module)

print

public static String print(EAPModuleResource resource)

print

public static String print(EAPModuleDependency dependency)

KIE EAP - Maven plugin 6.1.0.Final

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