protected ServiceDeployment parse(VFSDeploymentUnit unit, VirtualFile file, Document document) throws Exception { ServiceDeploymentParser parser = new ServiceDeploymentParser(document); ServiceDeployment parsed = parser.parse(); String name = file.toURI().toString(); parsed.setName(name); return parsed; } }
/** * 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; }
protected ServiceDeployment parse(VFSDeploymentUnit unit, VirtualFile file, Document document) throws Exception ServiceDeploymentParser parser = new ServiceDeploymentParser(document); ServiceDeployment parsed = parser.parse(); String name = file.toURI().toString(); parsed.setName(name);