org.jboss.deployment.spi
Class TargetModuleIDImpl

java.lang.Object
  extended by org.jboss.deployment.spi.TargetModuleIDImpl
All Implemented Interfaces:
javax.enterprise.deploy.spi.TargetModuleID

public class TargetModuleIDImpl
extends Object
implements javax.enterprise.deploy.spi.TargetModuleID

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.

Version:
$Revision: 1.1.1.1.4.3 $
Author:
thomas.diesler@jboss.org

Constructor Summary
TargetModuleIDImpl(javax.enterprise.deploy.spi.Target target, String moduleID, javax.enterprise.deploy.spi.TargetModuleID parentModuleID, boolean isRunning, javax.enterprise.deploy.shared.ModuleType moduleType)
          Construct a new target module
 
Method Summary
 void addChildTargetModuleID(javax.enterprise.deploy.spi.TargetModuleID childModuleID)
           
 boolean equals(Object obj)
          Equality is defined by moduleType, moduleID, and parentModuleID
 javax.enterprise.deploy.spi.TargetModuleID[] getChildTargetModuleID()
          Get the child modules
 String getModuleID()
          Get the module id
 javax.enterprise.deploy.shared.ModuleType getModuleType()
          Get this modules type.
 javax.enterprise.deploy.spi.TargetModuleID getParentTargetModuleID()
          The parent of this module
 javax.enterprise.deploy.spi.Target getTarget()
          Get the target
 String getWebURL()
          The URL for a web module
 int hashCode()
           
 boolean isRunning()
          True if the module is running.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TargetModuleIDImpl

public TargetModuleIDImpl(javax.enterprise.deploy.spi.Target target,
                          String moduleID,
                          javax.enterprise.deploy.spi.TargetModuleID parentModuleID,
                          boolean isRunning,
                          javax.enterprise.deploy.shared.ModuleType moduleType)
Construct a new target module

Method Detail

isRunning

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


getModuleType

public javax.enterprise.deploy.shared.ModuleType getModuleType()
Get this modules type.


getTarget

public javax.enterprise.deploy.spi.Target getTarget()
Get the target

Specified by:
getTarget in interface javax.enterprise.deploy.spi.TargetModuleID
Returns:
the target

getModuleID

public String getModuleID()
Get the module id

Specified by:
getModuleID in interface javax.enterprise.deploy.spi.TargetModuleID
Returns:
the id

getWebURL

public String getWebURL()
The URL for a web module

Specified by:
getWebURL in interface javax.enterprise.deploy.spi.TargetModuleID
Returns:
the url

getParentTargetModuleID

public javax.enterprise.deploy.spi.TargetModuleID getParentTargetModuleID()
The parent of this module

Specified by:
getParentTargetModuleID in interface javax.enterprise.deploy.spi.TargetModuleID
Returns:
the parent or null if there is no parent

getChildTargetModuleID

public javax.enterprise.deploy.spi.TargetModuleID[] getChildTargetModuleID()
Get the child modules

Specified by:
getChildTargetModuleID in interface javax.enterprise.deploy.spi.TargetModuleID
Returns:
an array of child modules or null if there are no children

addChildTargetModuleID

public void addChildTargetModuleID(javax.enterprise.deploy.spi.TargetModuleID childModuleID)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Equality is defined by moduleType, moduleID, and parentModuleID

Overrides:
equals in class Object

toString

public String toString()
Specified by:
toString in interface javax.enterprise.deploy.spi.TargetModuleID
Overrides:
toString in class Object


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.