public interface TargetOwner
Each Target object needs to know what object created it so it can delegate certain task to that object. Different classes that connect to the admin back-end in different ways can create Target objects, so this interface prescribes the behavior that each such "owner" of Targets must provide.
Fully-formed Target objects will have links back to their respective TargetOwner objects.
| Modifier and Type | Method and Description |
|---|---|
javax.enterprise.deploy.spi.Target |
createTarget(String name)
Creates a single
Target with the given name. |
javax.enterprise.deploy.spi.Target[] |
createTargets(String[] names)
Creates several
Target objects with the specified names. |
String |
exportClientStubs(String appName,
String destDir)
Exports the Client stub jars to the given location.
|
String |
getWebURL(javax.enterprise.deploy.spi.TargetModuleID tmid)
Returns the Web URL for the specified module on the
Target
implied by the TargetModuleID. |
void |
setWebURL(javax.enterprise.deploy.spi.TargetModuleID tmid,
String webURL)
Sets the Web URL for the specified module on the
Target implied
by the TargetModuleID. |
javax.enterprise.deploy.spi.Target createTarget(String name)
Target with the given name.name - the name of the Target to be returnedjavax.enterprise.deploy.spi.Target[] createTargets(String[] names)
Target objects with the specified names.names - the names of the targets to be returnedString getWebURL(javax.enterprise.deploy.spi.TargetModuleID tmid)
Target
implied by the TargetModuleID.tmid - void setWebURL(javax.enterprise.deploy.spi.TargetModuleID tmid,
String webURL)
Target implied
by the TargetModuleID.
represents a Web module or submodule on a Target.tmid - the - URLString exportClientStubs(String appName, String destDir) throws IOException
appName - The name of the application or module.destDir - The directory into which the stub jar file
should be exported.IOExceptionCopyright © 2017–2019 Eclipse Foundation. All rights reserved.