nodeFactory.init();
ExtensionPointRegistry extensionsRegistry = nodeFactory.getExtensionPointRegistry();
Properties props = extensionsRegistry.getExtensionPoint(UtilityExtensionPoint.class).getUtility(RuntimeProperties.class).getProperties();
props.setProperty("client", "true");
DomainRegistryFactory domainRegistryFactory = ExtensibleDomainRegistryFactory.getInstance(extensionsRegistry);
String registryURI = domainURI;
// TODO: theres better ways to do this but this gets things working for now
if (registryURI.indexOf(":") == -1) {
registryURI = "tuscanyclient:" + registryURI;
}
if (registryURI.startsWith("uri:")) {
registryURI = "tuscanyclient:" + registryURI.substring(4);
}
if (registryURI.startsWith("tuscany:")) {
registryURI = "tuscanyclient:" + registryURI.substring(8);
}
EndpointRegistry endpointRegistry;
try {
endpointRegistry = domainRegistryFactory.getEndpointRegistry(registryURI, domainURI);
} catch (Exception e) {
throw new NoSuchDomainException(domainURI, e);
}
FactoryExtensionPoint factories = extensionsRegistry.getExtensionPoint(FactoryExtensionPoint.class);