use of org.apache.aries.blueprint.ext.impl.ExtNamespaceHandler in project aries by apache.
the class AbstractBlueprintTest method parse.
protected ComponentDefinitionRegistryImpl parse(String name) throws Exception {
final URI extensionHandler = new URI("http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0");
NamespaceHandlerSet handlers = new NamespaceHandlerSet() {
public Set<URI> getNamespaces() {
return null;
}
public NamespaceHandler getNamespaceHandler(URI namespace) {
if (namespace.equals(extensionHandler)) {
return new ExtNamespaceHandler();
} else {
return null;
}
}
public void removeListener(NamespaceHandlerSet.Listener listener) {
}
public Schema getSchema() throws SAXException, IOException {
return null;
}
public Schema getSchema(Map<String, String> locations) throws SAXException, IOException {
return null;
}
public boolean isComplete() {
return false;
}
public void addListener(NamespaceHandlerSet.Listener listener) {
}
public void destroy() {
}
};
return parse(name, handlers);
}
Aggregations