1 23 24 32 33 package com.sun.enterprise.deployment.phasing; 34 35 import com.sun.enterprise.admin.target.TargetType; 36 import com.sun.enterprise.config.ConfigContext; 37 import com.sun.enterprise.deployment.backend.IASDeploymentException; 38 import com.sun.enterprise.deployment.pluggable.DeploymentFactory; 39 import com.sun.enterprise.server.ApplicationServer; 40 import com.sun.enterprise.server.pluggable.PluggableFeatureFactory; 41 42 47 public abstract class DeploymentTargetFactory { 48 49 private static DeploymentTargetFactory targetFactory; 50 51 55 public static DeploymentTargetFactory getDeploymentTargetFactory() { 56 57 if (targetFactory != null) { 58 return targetFactory; 59 } 60 61 PluggableFeatureFactory featureFactory = 62 ApplicationServer.getServerContext().getPluggableFeatureFactory(); 63 DeploymentFactory dFactory = featureFactory.getDeploymentFactory(); 64 targetFactory = dFactory.createDeploymentTargetFactory(); 65 return targetFactory; 66 } 67 68 75 public abstract DeploymentTarget getTarget(ConfigContext configContext , 76 String domainName, String targetName) throws IASDeploymentException; 77 78 84 public abstract DeploymentTarget getTarget(ConfigContext configContext, 85 String domainName) throws IASDeploymentException; 86 87 public abstract TargetType[] getValidDeploymentTargetTypes(); 88 } 89 | Popular Tags |