From 6e96ac103fa3e53ddb1cf1d7a4a9516e7c58c23b Mon Sep 17 00:00:00 2001 From: antelder Date: Tue, 16 Nov 2010 10:46:24 +0000 Subject: No changes just fix up some formatting git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1035579 13f79535-47bb-0310-9956-ffa450edef68 --- .../sca/client/impl/SCAClientFactoryImpl2.java | 25 +++++++++++----------- 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'sca-java-2.x/trunk/modules/sca-client-impl/src') 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 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 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 getService(Class serviceInterface, String serviceName) throws NoSuchServiceException, NoSuchDomainException { boolean foundDomain = false; -- cgit v1.2.3