Methods Summary |
---|
public void | addChildTargetModuleID(javax.enterprise.deploy.spi.TargetModuleID childModuleID)
childModuleIDs.add(childModuleID);
|
public boolean | equals(java.lang.Object obj)Equality is defined by moduleType, moduleID, and parentModuleID
boolean equals = false;
if (obj instanceof TargetModuleIDImpl)
{
TargetModuleIDImpl other = (TargetModuleIDImpl)obj;
equals = moduleType.equals(other.moduleType) && moduleID.equals(other.moduleID);
if (equals && parentModuleID != null)
equals = equals && parentModuleID.equals(other.parentModuleID);
}
return equals;
|
public javax.enterprise.deploy.spi.TargetModuleID[] | getChildTargetModuleID()Get the child modules
int children = childModuleIDs.size();
if (children > 0)
{
TargetModuleID[] idarr = new TargetModuleID[children];
childModuleIDs.toArray(idarr);
return idarr;
}
else
{
return null;
}
|
public java.lang.String | getModuleID()Get the module id
return moduleID;
|
public javax.enterprise.deploy.shared.ModuleType | getModuleType()Get this modules type.
return moduleType;
|
public javax.enterprise.deploy.spi.TargetModuleID | getParentTargetModuleID()The parent of this module
return parentModuleID;
|
public javax.enterprise.deploy.spi.Target | getTarget()Get the target
return target;
|
public java.lang.String | getWebURL()The URL for a web module
return null; //[todo] implement method
|
public int | hashCode()
String hashStr = moduleType + moduleID;
if (parentModuleID != null)
{
hashStr += parentModuleID.moduleID;
}
return hashStr.hashCode();
|
public boolean | isRunning()True if the module is running.
return isRunning;
|
public java.lang.String | toString()
StringBuffer sbuf = new StringBuffer(128);
String parentID = (parentModuleID != null ? parentModuleID.moduleID : null);
sbuf.append("[host=").append(target.getHostName());
sbuf.append(",id=").append(moduleID);
sbuf.append(",parent=").append(parentID);
sbuf.append(",children=").append(childModuleIDs);
sbuf.append("]");
return sbuf.toString();
|