/** * Parse the -service.xml into a ServiceDeployment * * @return the service deployment * @throws ConfigurationException for any error */ public ServiceDeployment parse() throws ConfigurationException { ServiceDeployment parsed = new ServiceDeployment(); List<ServiceDeploymentClassPath> classPaths = parseXMLClasspath(document); parsed.setClassPaths(classPaths); LoaderRepositoryConfig repository = parseLoaderRepositoryConfig(document); if (repository != null) parsed.setLoaderRepositoryConfig(repository); // We can't parse the services yet, because it requires the classloader parsed.setConfig(document.getDocumentElement()); return parsed; }
/** * Parse the xml * * @return the service deployment * @throws ConfigurationException for any error */ public ServiceDeployment parse() throws ConfigurationException { ServiceDeployment parsed = new ServiceDeployment(); List<ServiceDeploymentClassPath> classPaths = parseXMLClasspath(document); parsed.setClassPaths(classPaths); LoaderRepositoryConfig repository = parseLoaderRepositoryConfig(document); if (repository != null) parsed.setLoaderRepositoryConfig(repository); // We can't parse the services yet, because it requires the classloader parsed.setConfig(document.getDocumentElement()); return parsed; }