public void setResourceFinder(ResourceFinder finder) { if (finder == null) { _resourceFinder = new DefaultResourceFinder(); } else { _resourceFinder = finder; } }
public DocumentRegistry getDocRegistry() { if (_docRegistry == null) { _docRegistry = new DocumentRegistry(); WSDLFactory4BPEL wsdlFactory = (WSDLFactory4BPEL) WSDLFactoryBPEL20.newInstance(); WSDLReader r = wsdlFactory.newWSDLReader(); DefaultResourceFinder rf = new DefaultResourceFinder(_duDirectory, _duDirectory); URI basedir = _duDirectory.toURI(); List<File> wsdls = FileUtils.directoryEntriesInPath(_duDirectory, DeploymentUnitDir._wsdlFilter); for (File file : wsdls) { URI uri = basedir.relativize(file.toURI()); try { _docRegistry.addDefinition((Definition4BPEL) r.readWSDL(new WSDLLocatorImpl(rf, uri))); } catch (WSDLException e) { throw new ContextException("Couldn't read WSDL document at " + uri, e); } } } return _docRegistry; }
} else { File suDir = _suDir != null ? _suDir : _bpelFile.getParentFile(); wf = new DefaultResourceFinder(_bpelFile.getAbsoluteFile().getParentFile(), suDir.getAbsoluteFile());
r.setExtensionRegistry(extReg); DefaultResourceFinder rf = new DefaultResourceFinder(_duDirectory, _duDirectory); URI basedir = _duDirectory.toURI(); List<File> wsdls = FileUtils.directoryEntriesInPath(_duDirectory, DeploymentUnitDir._wsdlFilter);