@Override public ServiceDeploymentClassPath unmarshal(Object e) throws Exception { Element classpathElement = (Element) e; if (classpathElement.hasAttribute("codebase") == false) throw new ConfigurationException("Invalid classpath element missing codebase: " + classpathElement); String codebase = classpathElement.getAttribute("codebase").trim(); codebase = StringPropertyReplacer.replaceProperties(codebase); String archives = null; if (classpathElement.hasAttribute("archives")) { archives = classpathElement.getAttribute("archives").trim(); archives = StringPropertyReplacer.replaceProperties(archives); if ("".equals(archives)) archives = null; } return new ServiceDeploymentClassPath(codebase, archives); }
@Override public ServiceDeploymentClassPath unmarshal(Object e) throws Exception { Element classpathElement = (Element) e; if (classpathElement.hasAttribute("codebase") == false) throw new ConfigurationException("Invalid classpath element missing codebase: " + classpathElement); String codebase = classpathElement.getAttribute("codebase").trim(); codebase = StringPropertyReplacer.replaceProperties(codebase); String archives = null; if (classpathElement.hasAttribute("archives")) { archives = classpathElement.getAttribute("archives").trim(); archives = StringPropertyReplacer.replaceProperties(archives); if ("".equals(archives)) archives = null; } return new ServiceDeploymentClassPath(codebase, archives); }
classPaths = new ArrayList<ServiceDeploymentClassPath>(); ServiceDeploymentClassPath classPath = new ServiceDeploymentClassPath(codebase, archives); classPaths.add(classPath);
classPaths = new ArrayList<ServiceDeploymentClassPath>(); ServiceDeploymentClassPath classPath = new ServiceDeploymentClassPath(codebase, archives); classPaths.add(classPath);