@Override public Object marshal(ServiceDeploymentClassPath path) throws Exception { if(path == null) return null; Document document = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument(); Element classPath = document.createElement("classpath"); classPath.setAttribute("codebase", path.getCodeBase()); classPath.setAttribute("archives", path.getArchives()); return classPath; } }
@Override public Object marshal(ServiceDeploymentClassPath path) throws Exception { if(path == null) return null; Document document = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument(); Element classPath = document.createElement("classpath"); classPath.setAttribute("codebase", path.getCodeBase()); classPath.setAttribute("archives", path.getArchives()); return classPath; } }
String archives = path.getArchives();