com.ibm.ftt.projects.core.impl.logicalfactory
Class LogicalResourceFactoryFactory

java.lang.Object
  extended by com.ibm.ftt.projects.core.impl.logicalfactory.LogicalResourceFactoryFactory

public class LogicalResourceFactoryFactory
extends Object

Factory class responsible for returning an instance of an ILogicalResourceFactory. This is useful for adding a physical resource (such as a host artifact), to a sub-project. If an existing project resource referencing the physical resource already exists, the existing resource will be returned and no new project resource will be created.

Typical Usage:


 resource = LogicalResourceFactoryFactory.getSingleton().getLogicalResource(
                parent, child)
 
where parent is the parent ILogicalContainer the physical resource will be added to, child is the IPhysicalResource to be added to the container. The method returns a new or existing ILogicalResource which references the physical resource.


Field Summary
static String COPY_RIGHT
           
 
Constructor Summary
LogicalResourceFactoryFactory()
           
 
Method Summary
static ILogicalResourceFactory getSingleton()
          Returns a singleton instance of an ILogicalResourceFactory implementation
 

Field Detail

COPY_RIGHT

public static final String COPY_RIGHT
See Also:
Constant Field Values
Constructor Detail

LogicalResourceFactoryFactory

public LogicalResourceFactoryFactory()
Method Detail

getSingleton

public static ILogicalResourceFactory getSingleton()
Returns a singleton instance of an ILogicalResourceFactory implementation

Returns:
an ILogicalResourceFactory instance