public class TargetModuleIDImpl extends Object implements javax.enterprise.deploy.spi.TargetModuleID
TargetModuleID
interface from JSR-88, representing the
presence of a given module on a given Target
.
This implementation is independent of the TargetOwner
that owns the
corresponding Target.
Constructor and Description |
---|
TargetModuleIDImpl(TargetImpl target,
String moduleID)
Creates a new implementation object of TargetModuleId with no parent
and no children.
|
TargetModuleIDImpl(TargetImpl target,
String moduleID,
TargetModuleIDImpl parent,
TargetModuleIDImpl[] children)
Creates a new implementation object of TargetModuleID.
|
Modifier and Type | Method and Description |
---|---|
void |
addChildTargetModuleID(TargetModuleIDImpl child)
Add a child TargetModuleID to this TargetModuleID
|
javax.enterprise.deploy.spi.TargetModuleID[] |
getChildTargetModuleID()
Returns the TargetModuleIDs representing submodules of this module
deployed to the Target.
|
String |
getModuleID()
Returns the name of the module that is deployed to a given Target.
|
javax.enterprise.deploy.shared.ModuleType |
getModuleType() |
javax.enterprise.deploy.spi.TargetModuleID |
getParentTargetModuleID()
Returns the TargetModuleID for the containing module on the Target, if
this TargetModuleID represents a submodule.
|
javax.enterprise.deploy.spi.Target |
getTarget()
Returns the Target on which the module is deployed.
|
TargetImpl |
getTargetImpl()
Returns the Target on which the module is deployed.
|
String |
getWebURL()
Returns the URL for running the Web module, if this TargetModuleID
represents a Web module or submodule on a Target.
|
void |
setModuleType(javax.enterprise.deploy.shared.ModuleType moduleType)
Sets the module type for this deployed module
|
void |
setParentTargetModuleID(TargetModuleIDImpl parent)
Sets the parent TargetModuleID
|
void |
setWebURL(String webURL)
Sets the URL for running the Web module, if this TargetModuleID
represents a Web module or submodule on a Target.
|
String |
toString()
Returns
getModuleID() . |
public TargetModuleIDImpl(TargetImpl target, String moduleID, TargetModuleIDImpl parent, TargetModuleIDImpl[] children)
Normally this constructor should be used only by implementations of TargetOwner. Other code will normally retrieve TargetModuleID objects from other methods that create them as part of their work (such as deployment, for example).
target
- the target on which the module residesmoduleID
- the name of the moduleparent
- the higher-level TargetModuleIDImpl (if this object represents
a submodule of a module that is deployed to a Target)children
- TargetModuleIDImpl objects representing the submodules
of this module as deployed to the Targetpublic TargetModuleIDImpl(TargetImpl target, String moduleID)
target
- the target on which the module residesmoduleID
- the name of the modulepublic javax.enterprise.deploy.spi.Target getTarget()
getTarget
in interface javax.enterprise.deploy.spi.TargetModuleID
TargetImpl
public TargetImpl getTargetImpl()
TargetImpl
public String getModuleID()
getModuleID
in interface javax.enterprise.deploy.spi.TargetModuleID
public String getWebURL()
getWebURL
in interface javax.enterprise.deploy.spi.TargetModuleID
public void setWebURL(String webURL)
webURL
- public javax.enterprise.deploy.spi.TargetModuleID getParentTargetModuleID()
getParentTargetModuleID
in interface javax.enterprise.deploy.spi.TargetModuleID
public javax.enterprise.deploy.spi.TargetModuleID[] getChildTargetModuleID()
getChildTargetModuleID
in interface javax.enterprise.deploy.spi.TargetModuleID
public void addChildTargetModuleID(TargetModuleIDImpl child)
public void setParentTargetModuleID(TargetModuleIDImpl parent)
public void setModuleType(javax.enterprise.deploy.shared.ModuleType moduleType)
moduleType
- ModuleType
public javax.enterprise.deploy.shared.ModuleType getModuleType()
public String toString()
getModuleID()
.Copyright © 2020. All rights reserved.