Package org.glassfish.deployapi
Class TargetImpl
- java.lang.Object
-
- org.glassfish.deployapi.TargetImpl
-
- All Implemented Interfaces:
javax.enterprise.deploy.spi.Target
public class TargetImpl extends Object implements javax.enterprise.deploy.spi.Target
Implements the Target interface as specified by JSR-88.This implementation is independent of the concrete type of its owner.
- Author:
- tjquinn, David Matejcek
-
-
Constructor Summary
Constructors Constructor Description TargetImpl(TargetOwner owner, String name, String description)
Creates a new TargetImpl object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
exportClientStubs(String appName, String destDir)
Exports the Client stub jars to the given location.String
getDescription()
String
getName()
TargetOwner
getOwner()
String
toString()
Returns the name of this target.
-
-
-
Constructor Detail
-
TargetImpl
public TargetImpl(TargetOwner owner, String name, String description)
Creates a new TargetImpl object.Note that this constructor should normally be used only by a TargetOwner. Logic that needs to create
Target
instances should invokeTargetOwner.createTarget(java.lang.String)
orTargetOwner.createTargets(java.lang.String[])
on the TargetOwner.- Parameters:
owner
-name
-description
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfacejavax.enterprise.deploy.spi.Target
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfacejavax.enterprise.deploy.spi.Target
-
getOwner
public TargetOwner getOwner()
-
exportClientStubs
public String exportClientStubs(String appName, String destDir) throws IOException
Exports the Client stub jars to the given location.- Parameters:
appName
- The name of the application or module.destDir
- The directory into which the stub jar file should be exported.- Returns:
- the absolute location to the main jar file.
- Throws:
IOException
-
-