org.glassfish.deployapi
Class TargetImpl

java.lang.Object
  extended by org.glassfish.deployapi.TargetImpl
All Implemented Interfaces:
Target

public class TargetImpl
extends Object
implements Target

Implements the Target interface as specified by JSR-88.

This implementation is independent of the concrete type of its owner.

Author:
tjquinn

Constructor Summary
TargetImpl(TargetOwner owner, String name, String description)
          Creates a new TargetImpl object.
 
Method Summary
 String exportClientStubs(String appName, String destDir)
          Exports the Client stub jars to the given location.
 String getDescription()
          Returns the description of the Target.
 String getName()
          Returns the name of the Target.
 TargetOwner getOwner()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 invoke TargetOwner.createTarget(java.lang.String) or TargetOwner.createTargets(java.lang.String[]) on the TargetOwner.

Parameters:
owner -
name -
description -
Method Detail

getName

public String getName()
Returns the name of the Target.

Specified by:
getName in interface Target
Returns:

getDescription

public String getDescription()
Returns the description of the Target.

Specified by:
getDescription in interface Target
Returns:

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


Copyright © 2012. All Rights Reserved.