diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-11-16 10:46:24 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-11-16 10:46:24 +0000 |
commit | 6e96ac103fa3e53ddb1cf1d7a4a9516e7c58c23b (patch) | |
tree | 49b81d02d38b91290b2244c791e4ce831c7f441d /sca-java-2.x/trunk/modules/sca-client-impl/src/main/java/org/apache | |
parent | 074cc3cff2f00457318bd322a6bd58f65686ae5c (diff) |
No changes just fix up some formatting
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1035579 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/sca-client-impl/src/main/java/org/apache')
-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; |