summaryrefslogtreecommitdiffstats
path: root/java/sca/modules/sca-api/src/main/java/org/oasisopen/sca/client/SCAClient.java
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-11-20 23:53:35 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-11-20 23:53:35 +0000
commita3c48da9bb8971497d414f86e352123d95b9c3da (patch)
treefdf0f3636b65946c061c8b2e89d657b488be274e /java/sca/modules/sca-api/src/main/java/org/oasisopen/sca/client/SCAClient.java
parentcc7496466097c3cb8e793ebf3e332b025705aaa7 (diff)
Moving 2.x trunk
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@882795 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/sca-api/src/main/java/org/oasisopen/sca/client/SCAClient.java')
-rw-r--r--java/sca/modules/sca-api/src/main/java/org/oasisopen/sca/client/SCAClient.java53
1 files changed, 0 insertions, 53 deletions
diff --git a/java/sca/modules/sca-api/src/main/java/org/oasisopen/sca/client/SCAClient.java b/java/sca/modules/sca-api/src/main/java/org/oasisopen/sca/client/SCAClient.java
deleted file mode 100644
index 907330e93b..0000000000
--- a/java/sca/modules/sca-api/src/main/java/org/oasisopen/sca/client/SCAClient.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Copyright(C) OASIS(R) 2005,2009. All Rights Reserved. 2299
- * OASIS trademark, IPR and other policies apply. 2300
- */
-package org.oasisopen.sca.client;
-
-import java.net.URI;
-import org.oasisopen.sca.NoSuchDomainException;
-import org.oasisopen.sca.NoSuchServiceException;
-
-/**
- * Client side helper that can be used to lookup SCA Services within a SCA Domain.
- *
- * @see SCAClientFactory
- */
-public class SCAClient {
-
- /**
- * Returns a reference proxy that implements the business interface <T> of a
- * service in a domain
- *
- * @param uri the URI of the target service. Takes the form domainURI/componentName/serviceName.
- * The domainURI can be left off and defaults to the implementation specific default domain
- * The service can also take the extended form
- * domainURI/componentName/serviceName (or /componentName/serviceName).
- * Can also take the extended form domainURI/componentName/serviceName/bindingName
- * (or /componentName/serviceName/bindingName) to use a specific binding of the target service
- * @param interfaze The business interface class of the service in the
- * domain
- * @param <T> The business interface class of the service in the domain
- * @return a proxy to the target service, in the specified SCA Domain that
- * implements the business interface <B>.
- * @throws NoSuchServiceException Service requested was not found
- * @throws NoSuchDomainException Domain requested was not found
- */
- public static <T> T getService(Class<T> interfaze, String uri) throws NoSuchServiceException, NoSuchDomainException {
- URI domainURI = null;
- String serviceURI;
- int i = uri.indexOf('/');
- if (i == -1) {
- domainURI = null;
- serviceURI = uri;
- } else {
- serviceURI = uri.substring(i+1);
- if (i > 0) {
- domainURI = URI.create(uri.substring(0, i));
- } else {
- domainURI = null;
- }
- }
- return SCAClientFactory.newInstance(domainURI).getService(interfaze, serviceURI);
- }
-}