diff options
Diffstat (limited to 'sca-java-2.x/trunk/modules/sca-client-impl/src/main')
-rw-r--r-- | sca-java-2.x/trunk/modules/sca-client-impl/src/main/java/org/apache/tuscany/sca/client/impl/SCAClientFactoryImpl2.java | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/sca-java-2.x/trunk/modules/sca-client-impl/src/main/java/org/apache/tuscany/sca/client/impl/SCAClientFactoryImpl2.java b/sca-java-2.x/trunk/modules/sca-client-impl/src/main/java/org/apache/tuscany/sca/client/impl/SCAClientFactoryImpl2.java index 1cdfa2b347..3734fcfde2 100644 --- a/sca-java-2.x/trunk/modules/sca-client-impl/src/main/java/org/apache/tuscany/sca/client/impl/SCAClientFactoryImpl2.java +++ b/sca-java-2.x/trunk/modules/sca-client-impl/src/main/java/org/apache/tuscany/sca/client/impl/SCAClientFactoryImpl2.java @@ -48,19 +48,20 @@ public class SCAClientFactoryImpl2 extends SCAClientFactory { private void checkDomainURI(URI domainURI) throws NoSuchDomainException { // Check for local node String domainName = getDomainName(); - for ( NodeFactory nodeFactory : NodeFactory.getNodeFactories()) { - List<Node> nodes = ((NodeFactoryImpl)nodeFactory).getNodesInDomain(domainName); - if ( !nodes.isEmpty() ) - return; - } - - // Check for remote node - SCAClientHandler handler = new SCAClientHandler(domainName, null, null); - handler.checkDomain(); - } + for ( NodeFactory nodeFactory : NodeFactory.getNodeFactories()) { + List<Node> nodes = ((NodeFactoryImpl)nodeFactory).getNodesInDomain(domainName); + if ( !nodes.isEmpty() ) { + return; + } + } + + // Check for remote node + SCAClientHandler handler = new SCAClientHandler(domainName, null, null); + handler.checkDomain(); + } - @SuppressWarnings("unchecked") - @Override + @SuppressWarnings("unchecked") + @Override public <T> T getService(Class<T> serviceInterface, String serviceName) throws NoSuchServiceException, NoSuchDomainException { boolean foundDomain = false; |