FileDocCategorySizeDatePackage
DeploymentTargetFactory.javaAPI DocGlassfish v2 API4270Fri May 04 22:34:38 BST 2007com.sun.enterprise.deployment.phasing

DeploymentTargetFactory

public abstract class DeploymentTargetFactory extends Object
Interface that will be implemented by different targetfactories implemented for PE/EE
author
Sandhya E

Fields Summary
private static DeploymentTargetFactory
targetFactory
Constructors Summary
Methods Summary
public static com.sun.enterprise.deployment.phasing.DeploymentTargetFactorygetDeploymentTargetFactory()
This is a singleton factory for the DeploymentService implementation. We should revisit this to make sure this will work in multi-threaded environment, i.e. concurrent deployment.


        if (targetFactory != null) {
            return targetFactory;
        }

        PluggableFeatureFactory featureFactory =
            ApplicationServer.getServerContext().getPluggableFeatureFactory();
        DeploymentFactory dFactory = featureFactory.getDeploymentFactory();
        targetFactory = dFactory.createDeploymentTargetFactory();
        return targetFactory;
    
public abstract DeploymentTargetgetTarget(com.sun.enterprise.config.ConfigContext configContext, java.lang.String domainName, java.lang.String targetName)
Returns the DeploymentTarget that represents a targetName

param
configContext config context
param
targetName name of the target
return
DeploymentTarget
throws
IASDeploymentException

public abstract DeploymentTargetgetTarget(com.sun.enterprise.config.ConfigContext configContext, java.lang.String domainName)
Returns the default target

param
configContext config context
return
DeploymentTarget
throws
IASDeploymentException

public abstract com.sun.enterprise.admin.target.TargetType[]getValidDeploymentTargetTypes()