diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2010-01-29 03:34:21 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2010-01-29 03:34:21 +0000 |
commit | 40aa7960a748c80a2465d5ca78e8f91d43296c8e (patch) | |
tree | 2a0c530c1b8142c9f62bb57c9a871280507dac64 /sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/EndpointRegistry.java | |
parent | 4f808586972a762b6781ff23dc7d939bfca172db (diff) |
Refactor the DomainRegistryFactory to be extensions of DomainRegistryFactoryExtensionPoint
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@904367 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/EndpointRegistry.java')
-rw-r--r-- | sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/EndpointRegistry.java | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/EndpointRegistry.java b/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/EndpointRegistry.java index 43cf9f6416..6c4839018d 100644 --- a/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/EndpointRegistry.java +++ b/sca-java-2.x/trunk/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/EndpointRegistry.java @@ -19,6 +19,7 @@ package org.apache.tuscany.sca.runtime; +import java.util.Collection; import java.util.List; import org.apache.tuscany.sca.assembly.Endpoint; @@ -28,22 +29,41 @@ import org.apache.tuscany.sca.assembly.EndpointReference; * The EndpointRegistry holds the active service endpoints for the SCA domain */ public interface EndpointRegistry { + /** + * Add an enpoint to the registry. If the endpoint URI is the same as an existing endpoint in the registry, + * the existing one will be updated + * @param endpoint + */ void addEndpoint(Endpoint endpoint); + + /** + * Remove an enpoint from the registry + * @param endpoint + */ void removeEndpoint(Endpoint endpoint); + /** + * Look up an enpoint from the registry + * @param uri The endpoint URI + * @return + */ Endpoint getEndpoint(String uri); - void updateEndpoint(String uri, Endpoint endpoint); + + /** + * Get all endpoints in the registry + * @return + */ + Collection<Endpoint> getEndpoints(); + List<Endpoint> findEndpoint(String uri); List<Endpoint> findEndpoint(EndpointReference endpointReference); - List<Endpoint> getEndpoints(); void addEndpointReference(EndpointReference endpointReference); void removeEndpointReference(EndpointReference endpointReference); - List<EndpointReference> findEndpointReference(Endpoint endpoint); + // List<EndpointReference> findEndpointReference(Endpoint endpoint); List<EndpointReference> getEndpointReferences(); void addListener(EndpointListener listener); void removeListener(EndpointListener listener); - List<EndpointListener> getListeners(); } |