FileDocCategorySizeDatePackage
DeploymentFacilityFactory.javaAPI DocGlassfish v2 API2861Fri May 04 22:34:36 BST 2007com.sun.enterprise.deployment.client

DeploymentFacilityFactory

public class DeploymentFacilityFactory extends Object
This factory is for getting the implementation instance of DeploymentFacilityImpl

Fields Summary
private static final String
LOCAL_DF
Constructors Summary
Methods Summary
public static DeploymentFacilitygetDeploymentFacility()


        
        return new DeploymentFacilityImpl();
    
public static DeploymentFacilitygetLocalDeploymentFacility()

        DeploymentFacility df = null;
        try {
            df = (DeploymentFacility) Class.forName(LOCAL_DF).newInstance();
        } catch (Exception ex) {
            //@@@ log this
            ex.printStackTrace();
            return null;
        }
        ServerConnectionIdentifier sid = new ServerConnectionIdentifier();
        sid.setHostName("localhost");
        df.connect(sid);
        return df;