org.jboss.deployment.spi
Class TargetModuleIDImpl

java.lang.Object
  extended byorg.jboss.deployment.spi.TargetModuleIDImpl
All Implemented Interfaces:
TargetModuleID (src)

public class TargetModuleIDImpl
extends java.lang.Object
implements TargetModuleID (src)

A TargetModuleID interface represents a unique identifier for a deployed application module. A deployable application module can be an EAR, JAR, WAR or RAR file. A TargetModuleID can represent a root module or a child module. A root module TargetModuleID has no parent. It represents a deployed EAR file or stand alone module. A child module TargetModuleID represents a deployed sub module of a J2EE application. A child TargetModuleID has only one parent, the super module it was bundled and deployed with. The identifier consists of the target name and the unique identifier for the deployed application module.


Constructor Summary
TargetModuleIDImpl(Target (src)  target, java.lang.String moduleID, TargetModuleID (src)  parentModuleID, boolean isRunning)
          Construct a new target module
 
Method Summary
 TargetModuleID (src) [] getChildTargetModuleID()
          Get the child modules
 ModuleType (src) getModeType()
          Get this modules type.
 java.lang.String getModuleID()
          Get the module id
 TargetModuleID (src) getParentTargetModuleID()
          The parent of this module
 Target (src) getTarget()
          Get the target
 java.lang.String getWebURL()
          The URL for a web module
 boolean isRunning()
          True if the module is running.
 java.lang.String toString()
          Return the identifier of this module
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TargetModuleIDImpl

public TargetModuleIDImpl(Target (src)  target,
                          java.lang.String moduleID,
                          TargetModuleID (src)  parentModuleID,
                          boolean isRunning)
Construct a new target module

Method Detail

isRunning

public boolean isRunning()
True if the module is running.


getModeType

public ModuleType (src)  getModeType()
Get this modules type.


getTarget

public Target (src)  getTarget()
Get the target

Specified by:
getTarget in interface TargetModuleID (src)
Returns:
the target

getModuleID

public java.lang.String getModuleID()
Get the module id

Specified by:
getModuleID in interface TargetModuleID (src)
Returns:
the id

getWebURL

public java.lang.String getWebURL()
The URL for a web module

Specified by:
getWebURL in interface TargetModuleID (src)
Returns:
the url

toString

public java.lang.String toString()
Return the identifier of this module

Specified by:
toString in interface TargetModuleID (src)
Returns:
the identifier

getParentTargetModuleID

public TargetModuleID (src)  getParentTargetModuleID()
The parent of this module

Specified by:
getParentTargetModuleID in interface TargetModuleID (src)
Returns:
the parent or null if there is no parent

getChildTargetModuleID

public TargetModuleID (src) [] getChildTargetModuleID()
Get the child modules

Specified by:
getChildTargetModuleID in interface TargetModuleID (src)
Returns:
an array of child modules or null if there are no children