diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-06-12 20:57:24 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-06-12 20:57:24 +0000 |
commit | 667940fec12c91bb231d7f8ff477f9e78112b80b (patch) | |
tree | 3b3051540279487817ed2fef8bdbff6b85f0e5d6 /java/sca/modules/core-spi/src/main/java/org/apache | |
parent | c2b73c42cf96cb67efdf76a7c73635343a747ad3 (diff) |
Add methods to Endpoint/EndpointReference to set the ExtensionPointRegistry so that deserialized object can be resolved
Make the EndpointSerializer a declared utility
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@784270 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/core-spi/src/main/java/org/apache')
-rw-r--r-- | java/sca/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/RuntimeWire.java | 66 |
1 files changed, 19 insertions, 47 deletions
diff --git a/java/sca/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/RuntimeWire.java b/java/sca/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/RuntimeWire.java index bd8333ab70..0d9e4d1c86 100644 --- a/java/sca/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/RuntimeWire.java +++ b/java/sca/modules/core-spi/src/main/java/org/apache/tuscany/sca/runtime/RuntimeWire.java @@ -6,15 +6,15 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations - * under the License. + * under the License. */ package org.apache.tuscany.sca.runtime; @@ -29,54 +29,26 @@ import org.apache.tuscany.sca.invocation.InvocationChain; import org.apache.tuscany.sca.invocation.Message; /** - * The runtime wire interface that connects a component reference to a + * The runtime wire interface that connects a component reference to a * component service (or an external service) over the selected binding - * + * * @version $Rev$ $Date$ */ public interface RuntimeWire extends Cloneable { - - - // ================================================================= - // TODO - EPR - remove the following three methods when we have - // changes the rest of the instructure over to using EndpointReference2 - // and EndpointReference2 throughout - /** - * Get the source of the wire - * - * @return The end point reference of the source - */ - // EndpointReference getSource(); - - /** - * Get the target of the wire - * - * @return The end point reference of the target - */ - // EndpointReference getTarget(); - - /** - * Rebind the runtime wire with the given target - * @param target The target endpoint reference - */ - // void setTarget(EndpointReference target); - - //================================================================== - /** * return the endpoint reference that configured this wire - * - * @return the endpoint reference that configured this wire + * + * @return the endpoint reference that configured this wire */ EndpointReference getEndpointReference(); - + /** * return the endpoint that configured this wire - * - * @return the endpoint that configured this wire + * + * @return the endpoint that configured this wire */ - Endpoint getEndpoint(); - + Endpoint getEndpoint(); + /** * Force the invocation chains to be rebuilt */ @@ -85,35 +57,35 @@ public interface RuntimeWire extends Cloneable { /** * Returns the invocation chains for service operations associated with the * wire - * + * * @return the invocation chains for service operations associated with the * wire */ List<InvocationChain> getInvocationChains(); - + /** * Lookup the invocation chain by operation * @param operation The operation * @return The invocation chain for the given operation */ InvocationChain getInvocationChain(Operation operation); - + /** * Get the invocation chain for the binding-specific handling * @return */ InvocationChain getBindingInvocationChain(); - + /** * This invoke method assumes that the binding invocation chain is in force * and that there will be an operation selector element there to - * determine which operation to call + * determine which operation to call * @param msg The message * @return The result * @throws InvocationTargetException */ - Object invoke(Message msg) throws InvocationTargetException; - + Object invoke(Message msg) throws InvocationTargetException; + /** * Invoke an operation with given arguments * @param operation The operation |