1 23 24 package com.sun.enterprise.instance; 25 26 import java.util.Map ; 27 import java.util.HashMap ; 28 29 import com.sun.enterprise.config.ConfigContext; 30 import com.sun.enterprise.deployment.backend.DeployableObjectInfo; 31 import com.sun.enterprise.deployment.backend.DeployableObjectType; 32 import com.sun.enterprise.deployment.Application; 33 import com.sun.enterprise.deployment.RootDeploymentDescriptor; 34 import com.sun.enterprise.config.serverbeans.*; 35 import com.sun.enterprise.config.ConfigException; 36 37 import com.sun.enterprise.config.serverbeans.PropertyResolver; 38 39 42 43 public abstract class ModulesManager extends BaseManager { 44 protected ModulesManager(InstanceEnvironment env, boolean useBackupServerXml) throws ConfigException { 45 super(env, useBackupServerXml); 46 } 47 48 51 public Map getRegisteredDescriptors() { 52 53 if (modules==null) { 54 synchronized (ModulesManager.class) { 55 if (modules==null) { 56 modules = new HashMap (); 57 } 58 } 59 } 60 return modules; 61 } 62 63 protected String resolvePath(String path) { 64 String resolved = path; 65 try { 66 resolved = new PropertyResolver(configContext, 67 getInstanceEnvironment().getName()).resolve(path); 68 } catch (ConfigException ce) { 69 } 71 return resolved; 72 } 73 74 private static Map modules = null; 75 76 } 77 | Popular Tags |