net.sf.ant4eclipse.tools.pdesupport
Class TargetPlatformFactory

java.lang.Object
  extended by net.sf.ant4eclipse.tools.pdesupport.TargetPlatformFactory

public class TargetPlatformFactory
extends java.lang.Object

The target platform factory can be used to get an instance of type TargetPlatform. The created instances are stored in a map.


Constructor Summary
TargetPlatformFactory()
           
 
Method Summary
static void clear()
          Removes all target platforms from the factory.
static TargetPlatform getInstance(Workspace workspace)
           Returns an instance of TargetPlatform with the given workspace.
static TargetPlatform getInstance(Workspace workspace, java.io.File targetLocation)
           Returns an instance of TargetPlatform with the given targetLocation and workspace.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TargetPlatformFactory

public TargetPlatformFactory()
Method Detail

getInstance

public static TargetPlatform getInstance(Workspace workspace,
                                         java.io.File targetLocation)

Returns an instance of TargetPlatform with the given targetLocation and workspace.

Parameters:
workspace - the workspace which contains the projects to build.
targetLocation - the location of the platform against which the workspace plugins will be compiled and tested
Returns:
the TargetPlatform

getInstance

public static TargetPlatform getInstance(Workspace workspace)

Returns an instance of TargetPlatform with the given workspace.

Parameters:
targetLocation - the location of the platform against which the workspace plugins will be compiled and tested
Returns:
the TargetPlatform

clear

public static void clear()
Removes all target platforms from the factory.