summaryrefslogtreecommitdiffstats
path: root/branches/sca-java-2.0-M3/modules/sca-api/src/main/java/org/oasisopen/sca/client/SCAClientFactory.java
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-11-11 23:09:31 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-11-11 23:09:31 +0000
commita7c1a39d8c3c4ef4d5878dbff726085082a17e8a (patch)
tree54faa0e87eb8c8242a4a0baeb5f7b505a175d00f /branches/sca-java-2.0-M3/modules/sca-api/src/main/java/org/oasisopen/sca/client/SCAClientFactory.java
parent4e13586bc791d71c41760cf4d0a5cc908973de3e (diff)
Moving 2.x branches
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@835136 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-2.0-M3/modules/sca-api/src/main/java/org/oasisopen/sca/client/SCAClientFactory.java')
-rw-r--r--branches/sca-java-2.0-M3/modules/sca-api/src/main/java/org/oasisopen/sca/client/SCAClientFactory.java89
1 files changed, 0 insertions, 89 deletions
diff --git a/branches/sca-java-2.0-M3/modules/sca-api/src/main/java/org/oasisopen/sca/client/SCAClientFactory.java b/branches/sca-java-2.0-M3/modules/sca-api/src/main/java/org/oasisopen/sca/client/SCAClientFactory.java
deleted file mode 100644
index e2abcf08e4..0000000000
--- a/branches/sca-java-2.0-M3/modules/sca-api/src/main/java/org/oasisopen/sca/client/SCAClientFactory.java
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- * Copyright(C) OASIS(R) 2005,2009. All Rights Reserved.
- * OASIS trademark, IPR and other policies apply.
- */
-package org.oasisopen.sca.client;
-
-import java.util.Properties;
-
-import org.oasisopen.sca.client.impl.SCAClientFactoryFinder;
-
-/**
- * The SCAClientFactory can be used by non-SCA managed code to lookup services
- * that exist in a SCADomain.
- *
- * @see SCAClientFactoryFinder
- * @see SCAClient
- * @author OASIS Open
- */
-public abstract class SCAClientFactory {
-
- /**
- * The default implementation of the SCAClientFactory. A Vendor may use
- * reflection to inject a default SCAClientFactory instance that will be
- * used in the newInstance() methods rather than using the
- * SCAClientFactoryFinder.
- */
- protected static SCAClientFactory defaultFactory;
-
- /**
- * Creates a new instance of the SCAClient that can be used to lookup SCA
- * Services.
- *
- * @return A new SCAClient
- */
- public static SCAClient newInstance() {
- return newInstance(null, null);
- }
-
- /**
- * Creates a new instance of the SCAClient that can be used to lookup SCA
- * Services.
- *
- * @param properties Properties that may be used when creating a new
- * instance of the SCAClient
- * @return A new SCAClient instance
- */
- public static SCAClient newInstance(Properties properties) {
- return newInstance(properties, null);
- }
-
- /**
- * Creates a new instance of the SCAClient that can be used to lookup SCA
- * Services.
- *
- * @param classLoader ClassLoader that may be used when creating a new
- * instance of the SCAClient
- * @return A new SCAClient instance
- */
- public static SCAClient newInstance(ClassLoader classLoader) {
- return newInstance(null, classLoader);
- }
-
- /**
- * Creates a new instance of the SCAClient that can be used to lookup SCA
- * Services.
- *
- * @param properties Properties that may be used when creating a new
- * instance of the SCAClient
- * @param classLoader ClassLoader that may be used when creating a new
- * instance of the SCAClient
- * @return A new SCAClient instance
- */
- public static SCAClient newInstance(Properties properties, ClassLoader classLoader) {
- final SCAClientFactory factory;
- if (defaultFactory == null) {
- factory = SCAClientFactoryFinder.find(properties, classLoader);
- } else {
- factory = defaultFactory;
- }
- return factory.createSCAClient();
- }
-
- /**
- * This method is invoked to create a new SCAClient instance.
- *
- * @return A new SCAClient instance
- */
- protected abstract SCAClient createSCAClient();
-}