KIE EAP - Maven plugin 6.1.0.Final

org.kie.integration.eap.maven.model.module
Class EAPAbstractModule

java.lang.Object
  extended by org.kie.integration.eap.maven.model.module.EAPAbstractModule
All Implemented Interfaces:
EAPModule
Direct Known Subclasses:
EAPBaseModule, EAPStaticModule

public abstract class EAPAbstractModule
extends Object
implements EAPModule


Constructor Summary
protected EAPAbstractModule(String name, String slot)
           
protected EAPAbstractModule(String name, String location, String slot)
           
protected EAPAbstractModule(String name, String location, String slot, Properties properties)
           
 
Method Summary
 boolean addDependency(EAPModuleDependency dependency)
          Adds a dependency for the module.
 boolean addResource(EAPModuleResource resource)
          Adds a module resource artifact.
 boolean equals(Object obj)
           
 org.sonatype.aether.artifact.Artifact getArtifact()
          Return the artifact that contains this module definition.
 Collection<EAPModuleDependency> getDependencies()
          The module dependencies.
 EAPModuleDependency getDependency(String uid)
          Returns a dependency for a given name.
 EAPLayer getLayer()
          The module layer.
 String getLocation()
          The module location in JBoss EAP modules root folder.
 String getName()
          The module name.
 Properties getProperties()
          The module properties.
 Collection<EAPModuleResource> getResources()
          The resources for the module.
 String getSlot()
          The module slot in JBoss EAP modules root folder.
 String getUniqueId()
          Returns the unique identifier for the module.
 void setArtifact(org.sonatype.aether.artifact.Artifact artifact)
           
 void setLayer(EAPLayer layer)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.kie.integration.eap.maven.model.module.EAPModule
createDependency
 

Constructor Detail

EAPAbstractModule

protected EAPAbstractModule(String name,
                            String slot)

EAPAbstractModule

protected EAPAbstractModule(String name,
                            String location,
                            String slot)

EAPAbstractModule

protected EAPAbstractModule(String name,
                            String location,
                            String slot,
                            Properties properties)
Method Detail

getName

public String getName()
Description copied from interface: EAPModule
The module name.

Specified by:
getName in interface EAPModule
Returns:
The module name.

getLocation

public String getLocation()
Description copied from interface: EAPModule
The module location in JBoss EAP modules root folder.

Specified by:
getLocation in interface EAPModule
Returns:
The module location.

getSlot

public String getSlot()
Description copied from interface: EAPModule
The module slot in JBoss EAP modules root folder.

Specified by:
getSlot in interface EAPModule
Returns:
The module slot.

getResources

public Collection<EAPModuleResource> getResources()
Description copied from interface: EAPModule
The resources for the module.

Specified by:
getResources in interface EAPModule
Returns:
The resources for the module.

addResource

public boolean addResource(EAPModuleResource resource)
Adds a module resource artifact.

Specified by:
addResource in interface EAPModule
Parameters:
resource - The artifact resource.
Returns:
Resource added.

getDependencies

public Collection<EAPModuleDependency> getDependencies()
Description copied from interface: EAPModule
The module dependencies.

Specified by:
getDependencies in interface EAPModule
Returns:
The module dependencies.

getLayer

public EAPLayer getLayer()
Description copied from interface: EAPModule
The module layer.

Specified by:
getLayer in interface EAPModule
Returns:
The module layer.

setLayer

public void setLayer(EAPLayer layer)

getDependency

public EAPModuleDependency getDependency(String uid)
Description copied from interface: EAPModule
Returns a dependency for a given name.

Specified by:
getDependency in interface EAPModule
Parameters:
uid - The module UID of the dependency.
Returns:
The dependency object.

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

addDependency

public boolean addDependency(EAPModuleDependency dependency)
Description copied from interface: EAPModule
Adds a dependency for the module.

Specified by:
addDependency in interface EAPModule
Parameters:
dependency - The dependency to add.
Returns:
If the dependency has been added.

toString

public String toString()
Overrides:
toString in class Object

getUniqueId

public String getUniqueId()
Description copied from interface: EAPModule
Returns the unique identifier for the module. The UID is the concatenation of: #layer + #module_name + #module_slot

Specified by:
getUniqueId in interface EAPModule
Returns:
The UID for the module.

getProperties

public Properties getProperties()
Description copied from interface: EAPModule
The module properties.

Specified by:
getProperties in interface EAPModule
Returns:
The module properties.

getArtifact

public org.sonatype.aether.artifact.Artifact getArtifact()
Description copied from interface: EAPModule
Return the artifact that contains this module definition.

Specified by:
getArtifact in interface EAPModule
Returns:
The artifact that contains this module definition.

setArtifact

public void setArtifact(org.sonatype.aether.artifact.Artifact artifact)

KIE EAP - Maven plugin 6.1.0.Final

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