You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by jm...@apache.org on 2007/02/13 23:32:52 UTC

svn commit: r507270 - in /incubator/tuscany/java/sca/kernel: core/src/main/java/org/apache/tuscany/core/builder/ core/src/main/java/org/apache/tuscany/core/deployer/ core/src/main/java/org/apache/tuscany/core/wire/ core/src/test/java/org/apache/tuscany...

Author: jmarino
Date: Tue Feb 13 14:32:51 2007
New Revision: 507270

URL: http://svn.apache.org/viewvc?view=rev&rev=507270
Log:
move methods which will be deleted in the merge from Wire to Inbound/OutboundWire and InvocationChain to Inbound/OutboundInvocationChain

Modified:
    incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/builder/ConnectorImpl.java
    incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/deployer/DeployerImpl.java
    incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/wire/InboundInvocationChainImpl.java
    incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/wire/InboundWireImpl.java
    incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/wire/OutboundWireImpl.java
    incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/builder/InboundtoOutboundConnectTestCase.java
    incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/builder/OutboundToInboundConnectTestCase.java
    incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/wire/InboundInvocationErrorTestCase.java
    incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/wire/InvocationConfigurationErrorTestCase.java
    incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/wire/InvocationConfigurationTestCase.java
    incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/wire/OutboundInvocationHandlerTestCase.java
    incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/wire/jdk/JDKInboundInvocationHandlerSerializationTestCase.java
    incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/wire/jdk/JDKInboundInvocationHandlerTestCase.java
    incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/wire/InboundInvocationChain.java
    incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/wire/InvocationChain.java
    incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/wire/OutboundInvocationChain.java
    incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/wire/OutboundWire.java
    incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/wire/Wire.java

Modified: incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/builder/ConnectorImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/builder/ConnectorImpl.java?view=diff&rev=507270&r1=507269&r2=507270
==============================================================================
--- incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/builder/ConnectorImpl.java (original)
+++ incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/builder/ConnectorImpl.java Tue Feb 13 14:32:51 2007
@@ -439,7 +439,6 @@
                         e);
                 }
                 chain.setTargetInvoker(invoker);
-                chain.prepare();
             }
             OutboundWire outboundWire = binding.getOutboundWire();
             // connect the reference's inbound and outbound wires

Modified: incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/deployer/DeployerImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/deployer/DeployerImpl.java?view=diff&rev=507270&r1=507269&r2=507270
==============================================================================
--- incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/deployer/DeployerImpl.java (original)
+++ incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/deployer/DeployerImpl.java Tue Feb 13 14:32:51 2007
@@ -210,7 +210,6 @@
                         throw new WireCreationException("Error processing inbound wire", component.getUri(), e);
                     }
                     chain.setTargetInvoker(invoker);
-                    chain.prepare();
                 }
             }
 

Modified: incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/wire/InboundInvocationChainImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/wire/InboundInvocationChainImpl.java?view=diff&rev=507270&r1=507269&r2=507270
==============================================================================
--- incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/wire/InboundInvocationChainImpl.java (original)
+++ incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/wire/InboundInvocationChainImpl.java Tue Feb 13 14:32:51 2007
@@ -35,7 +35,4 @@
         super(operation);
     }
 
-    public void prepare() {
-    }
-
 }

Modified: incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/wire/InboundWireImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/wire/InboundWireImpl.java?view=diff&rev=507270&r1=507269&r2=507270
==============================================================================
--- incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/wire/InboundWireImpl.java (original)
+++ incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/wire/InboundWireImpl.java Tue Feb 13 14:32:51 2007
@@ -31,6 +31,7 @@
 import org.apache.tuscany.spi.wire.InboundWire;
 import org.apache.tuscany.spi.wire.OutboundInvocationChain;
 import org.apache.tuscany.spi.wire.OutboundWire;
+import org.apache.tuscany.spi.wire.InvocationChain;
 
 /**
  * Default implementation of an inbound wire
@@ -147,5 +148,22 @@
 
     public void setComponent(AtomicComponent container) {
         this.targetComponent = container;
+    }
+
+
+    public Map<Operation<?>, InvocationChain> getInvocationChains() {
+        throw new UnsupportedOperationException();
+    }
+
+    public void addInvocationChain(Operation<?> operation, InvocationChain chain) {
+        throw new UnsupportedOperationException();
+    }
+
+    public Map<Operation<?>, InboundInvocationChain> getCallbackInvocationChains() {
+        throw new UnsupportedOperationException();
+    }
+
+    public void addCallbackInvocationChain(Operation<?> operation, InboundInvocationChain chain) {
+        throw new UnsupportedOperationException();
     }
 }

Modified: incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/wire/OutboundWireImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/wire/OutboundWireImpl.java?view=diff&rev=507270&r1=507269&r2=507270
==============================================================================
--- incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/wire/OutboundWireImpl.java (original)
+++ incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/wire/OutboundWireImpl.java Tue Feb 13 14:32:51 2007
@@ -30,6 +30,7 @@
 import org.apache.tuscany.spi.wire.InboundWire;
 import org.apache.tuscany.spi.wire.OutboundInvocationChain;
 import org.apache.tuscany.spi.wire.OutboundWire;
+import org.apache.tuscany.spi.wire.InvocationChain;
 
 /**
  * Default implementation of an outbound wire
@@ -132,6 +133,23 @@
     }
 
     public void setCallbackReferenceName(String callbackReferenceName) {
+        throw new UnsupportedOperationException();
+    }
+
+    public Map<Operation<?>, InvocationChain> getInvocationChains() {
+        throw new UnsupportedOperationException();
+    }
+
+
+    public void addInvocationChain(Operation<?> operation, InvocationChain chain) {
+        throw new UnsupportedOperationException();
+    }
+
+    public Map<Operation<?>, InboundInvocationChain> getCallbackInvocationChains() {
+        throw new UnsupportedOperationException();
+    }
+
+    public void addCallbackInvocationChain(Operation<?> operation, InboundInvocationChain chain) {
         throw new UnsupportedOperationException();
     }
 }

Modified: incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/builder/InboundtoOutboundConnectTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/builder/InboundtoOutboundConnectTestCase.java?view=diff&rev=507270&r1=507269&r2=507270
==============================================================================
--- incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/builder/InboundtoOutboundConnectTestCase.java (original)
+++ incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/builder/InboundtoOutboundConnectTestCase.java Tue Feb 13 14:32:51 2007
@@ -56,7 +56,6 @@
         EasyMock.replay(invoker);
         connector.connect(inboundChain, outboundChain);
         inboundChain.setTargetInvoker(invoker);
-        inboundChain.prepare();
         Message msg = new MessageImpl();
         msg.setTargetInvoker(invoker);
         inboundChain.getHeadInterceptor().invoke(msg);
@@ -80,7 +79,6 @@
         assertEquals(0, interceptor.getCount());
         connector.connect(inboundChain, outboundChain);
         inboundChain.setTargetInvoker(invoker);
-        inboundChain.prepare();
         msg.setTargetInvoker(inboundChain.getTargetInvoker());
         assertEquals(msg, inboundChain.getHeadInterceptor().invoke(msg));
         assertEquals(1, interceptor.getCount());
@@ -103,7 +101,6 @@
         assertEquals(0, interceptor.getCount());
         connector.connect(inboundChain, outboundChain);
         inboundChain.setTargetInvoker(invoker);
-        inboundChain.prepare();
         msg.setTargetInvoker(inboundChain.getTargetInvoker());
         assertEquals(msg, inboundChain.getHeadInterceptor().invoke(msg));
         assertEquals(1, interceptor.getCount());
@@ -129,7 +126,6 @@
         assertEquals(0, targetInterceptor.getCount());
         connector.connect(inboundChain, outboundChain);
         inboundChain.setTargetInvoker(invoker);
-        inboundChain.prepare();
         msg.setTargetInvoker(inboundChain.getTargetInvoker());
         assertEquals(msg, inboundChain.getHeadInterceptor().invoke(msg));
         assertEquals(1, sourceInterceptor.getCount());
@@ -147,7 +143,6 @@
         EasyMock.replay(invoker);
         connector.connect(inboundChain, outboundChain);
         inboundChain.setTargetInvoker(invoker);
-        inboundChain.prepare();
         msg.setTargetInvoker(inboundChain.getTargetInvoker());
         assertEquals(msg, inboundChain.getHeadInterceptor().invoke(msg));
         EasyMock.verify(invoker);

Modified: incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/builder/OutboundToInboundConnectTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/builder/OutboundToInboundConnectTestCase.java?view=diff&rev=507270&r1=507269&r2=507270
==============================================================================
--- incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/builder/OutboundToInboundConnectTestCase.java (original)
+++ incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/builder/OutboundToInboundConnectTestCase.java Tue Feb 13 14:32:51 2007
@@ -63,7 +63,6 @@
         expect(invoker.invokeTarget(EasyMock.eq(val), EasyMock.eq(NONE))).andReturn(val);
         replay(invoker);
         connector.connect(outboundChain, inboundChain, invoker, false);
-        inboundChain.prepare();
         assertEquals(val, outboundChain.getTargetInvoker().invokeTarget(val, NONE));
         verify(invoker);
     }
@@ -85,7 +84,6 @@
         replay(invoker);
         assertEquals(0, interceptor.getCount());
         connector.connect(outboundChain, inboundChain, invoker, false);
-        inboundChain.prepare();
         msg.setTargetInvoker(outboundChain.getTargetInvoker());
         assertEquals(msg, outboundChain.getHeadInterceptor().invoke(msg));
         assertEquals(1, interceptor.getCount());
@@ -108,7 +106,6 @@
         replay(invoker);
         assertEquals(0, interceptor.getCount());
         connector.connect(outboundChain, inboundChain, invoker, false);
-        inboundChain.prepare();
         msg.setTargetInvoker(outboundChain.getTargetInvoker());
         assertEquals(msg, outboundChain.getHeadInterceptor().invoke(msg));
         assertEquals(1, interceptor.getCount());
@@ -135,7 +132,6 @@
         assertEquals(0, sourceInterceptor.getCount());
         assertEquals(0, targetInterceptor.getCount());
         connector.connect(outboundChain, inboundChain, invoker, false);
-        inboundChain.prepare();
         msg.setTargetInvoker(outboundChain.getTargetInvoker());
         assertEquals(msg, outboundChain.getHeadInterceptor().invoke(msg));
         assertEquals(1, sourceInterceptor.getCount());

Modified: incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/wire/InboundInvocationErrorTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/wire/InboundInvocationErrorTestCase.java?view=diff&rev=507270&r1=507269&r2=507270
==============================================================================
--- incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/wire/InboundInvocationErrorTestCase.java (original)
+++ incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/wire/InboundInvocationErrorTestCase.java Tue Feb 13 14:32:51 2007
@@ -131,7 +131,6 @@
         chain.addInterceptor(new MockSyncInterceptor());
         chain.setTargetInvoker(invoker);
         chain.addInterceptor(new InvokerInterceptor());
-        chain.prepare();
         return chain;
     }
 

Modified: incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/wire/InvocationConfigurationErrorTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/wire/InvocationConfigurationErrorTestCase.java?view=diff&rev=507270&r1=507269&r2=507270
==============================================================================
--- incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/wire/InvocationConfigurationErrorTestCase.java (original)
+++ incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/wire/InvocationConfigurationErrorTestCase.java Tue Feb 13 14:32:51 2007
@@ -77,7 +77,6 @@
         // connect the source to the target
         source.setTargetInterceptor(target.getHeadInterceptor());
         source.prepare();
-        target.prepare();
         MockStaticInvoker invoker = new MockStaticInvoker(hello, new SimpleTargetImpl());
         source.setTargetInvoker(invoker);
 

Modified: incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/wire/InvocationConfigurationTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/wire/InvocationConfigurationTestCase.java?view=diff&rev=507270&r1=507269&r2=507270
==============================================================================
--- incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/wire/InvocationConfigurationTestCase.java (original)
+++ incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/wire/InvocationConfigurationTestCase.java Tue Feb 13 14:32:51 2007
@@ -80,7 +80,6 @@
         // connect the source to the target
         source.setTargetInterceptor(target.getHeadInterceptor());
         source.prepare();
-        target.prepare();
         MockStaticInvoker invoker = new MockStaticInvoker(hello, new SimpleTargetImpl());
         source.setTargetInvoker(invoker);
 

Modified: incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/wire/OutboundInvocationHandlerTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/wire/OutboundInvocationHandlerTestCase.java?view=diff&rev=507270&r1=507269&r2=507270
==============================================================================
--- incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/wire/OutboundInvocationHandlerTestCase.java (original)
+++ incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/wire/OutboundInvocationHandlerTestCase.java Tue Feb 13 14:32:51 2007
@@ -121,7 +121,6 @@
         // connect the source to the target
         source.setTargetInterceptor(targetInterceptor);
         source.prepare();
-        target.prepare();
         Method method = JavaIDLUtils.findMethod(operation, SimpleTarget.class.getMethods());
         MockStaticInvoker invoker = new MockStaticInvoker(method, new SimpleTargetImpl());
         source.setTargetInvoker(invoker);

Modified: incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/wire/jdk/JDKInboundInvocationHandlerSerializationTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/wire/jdk/JDKInboundInvocationHandlerSerializationTestCase.java?view=diff&rev=507270&r1=507269&r2=507270
==============================================================================
--- incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/wire/jdk/JDKInboundInvocationHandlerSerializationTestCase.java (original)
+++ incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/wire/jdk/JDKInboundInvocationHandlerSerializationTestCase.java Tue Feb 13 14:32:51 2007
@@ -99,7 +99,6 @@
         InboundInvocationChain chain = new InboundInvocationChainImpl(operation);
         chain.setTargetInvoker(invoker);
         chain.addInterceptor(new InvokerInterceptor());
-        chain.prepare();
         return chain;
     }
 

Modified: incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/wire/jdk/JDKInboundInvocationHandlerTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/wire/jdk/JDKInboundInvocationHandlerTestCase.java?view=diff&rev=507270&r1=507269&r2=507270
==============================================================================
--- incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/wire/jdk/JDKInboundInvocationHandlerTestCase.java (original)
+++ incubator/tuscany/java/sca/kernel/core/src/test/java/org/apache/tuscany/core/wire/jdk/JDKInboundInvocationHandlerTestCase.java Tue Feb 13 14:32:51 2007
@@ -63,7 +63,6 @@
         chain.addInterceptor(interceptor);
         chain.addInterceptor(new InvokerInterceptor());
         chain.setTargetInvoker(invoker);
-        chain.prepare();
         InboundWire wire = createWire(chain);
 
         WorkContext workContext = EasyMock.createNiceMock(WorkContext.class);

Modified: incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/wire/InboundInvocationChain.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/wire/InboundInvocationChain.java?view=diff&rev=507270&r1=507269&r2=507270
==============================================================================
--- incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/wire/InboundInvocationChain.java (original)
+++ incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/wire/InboundInvocationChain.java Tue Feb 13 14:32:51 2007
@@ -25,5 +25,15 @@
  */
 public interface InboundInvocationChain extends InvocationChain {
 
+    /**
+     * Returns the head interceptor of the birdged target-side chain
+     */
+    Interceptor getTargetInterceptor();
+
+    /**
+     * Sets the head interceptor of the bridged target-side chain
+     */
+    void setTargetInterceptor(Interceptor interceptor);
+
 
 }

Modified: incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/wire/InvocationChain.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/wire/InvocationChain.java?view=diff&rev=507270&r1=507269&r2=507270
==============================================================================
--- incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/wire/InvocationChain.java (original)
+++ incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/wire/InvocationChain.java Tue Feb 13 14:32:51 2007
@@ -77,19 +77,4 @@
      */
     Interceptor getTailInterceptor();
 
-    /**
-     * Sets the head interceptor of the bridged target-side chain
-     */
-    void setTargetInterceptor(Interceptor interceptor);
-
-    /**
-     * Returns the head interceptor of the birdged target-side chain
-     */
-    Interceptor getTargetInterceptor();
-
-    /**
-     * Signals to the chain that its configuration is complete. Implementations may use this callback to prepare their
-     * invocation chains.
-     */
-    void prepare();
 }

Modified: incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/wire/OutboundInvocationChain.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/wire/OutboundInvocationChain.java?view=diff&rev=507270&r1=507269&r2=507270
==============================================================================
--- incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/wire/OutboundInvocationChain.java (original)
+++ incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/wire/OutboundInvocationChain.java Tue Feb 13 14:32:51 2007
@@ -25,4 +25,20 @@
  */
 public interface OutboundInvocationChain extends InvocationChain {
 
+    /**
+     * Returns the head interceptor of the birdged target-side chain
+     */
+    Interceptor getTargetInterceptor();
+    
+    /**
+     * Sets the head interceptor of the bridged target-side chain
+     */
+    void setTargetInterceptor(Interceptor interceptor);
+
+    /**
+     * Signals to the chain that its configuration is complete. Implementations may use this callback to prepare their
+     * invocation chains.
+     */
+    void prepare();
+
 }

Modified: incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/wire/OutboundWire.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/wire/OutboundWire.java?view=diff&rev=507270&r1=507269&r2=507270
==============================================================================
--- incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/wire/OutboundWire.java (original)
+++ incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/wire/OutboundWire.java Tue Feb 13 14:32:51 2007
@@ -18,7 +18,6 @@
  */
 package org.apache.tuscany.spi.wire;
 
-import java.net.URI;
 import java.util.Map;
 
 import org.apache.tuscany.spi.model.Operation;

Modified: incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/wire/Wire.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/wire/Wire.java?view=diff&rev=507270&r1=507269&r2=507270
==============================================================================
--- incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/wire/Wire.java (original)
+++ incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/wire/Wire.java Tue Feb 13 14:32:51 2007
@@ -19,9 +19,11 @@
 package org.apache.tuscany.spi.wire;
 
 import java.net.URI;
+import java.util.Map;
 import javax.xml.namespace.QName;
 
 import org.apache.tuscany.spi.component.TargetResolutionException;
+import org.apache.tuscany.spi.model.Operation;
 import org.apache.tuscany.spi.model.ServiceContract;
 
 /**
@@ -96,7 +98,9 @@
     void setServiceContract(ServiceContract contract);
 
     /**
-     * Returns true if its invocation chains may be bypassed
+     * Returns true if the wire is optimizable and its invocation chains may be bypassed
+     *
+     * @return true if the wire is optimizable and its invocation chains may be bypassed
      */
     boolean isOptimizable();
 
@@ -109,7 +113,40 @@
 
     /**
      * Returns the non-proxied target instance for this wire
+     *
+     * @return the non-proxied target instance for this wire
      */
     Object getTargetService() throws TargetResolutionException;
+
+    /**
+     * Returns the invocation chains for service operations associated with the wire
+     *
+     * @return the invocation chains for service operations associated with the wire
+     */
+    Map<Operation<?>, InvocationChain> getInvocationChains();
+
+    /**
+     * Adds the invocation chain associated with the given operation
+     *
+     * @param operation the service operation
+     * @param chain     the invocation chain
+     */
+    void addInvocationChain(Operation<?> operation, InvocationChain chain);
+
+    /**
+     * Returns the invocation chains for callback service operations associated with the wire
+     *
+     * @return the invocation chains for callback service operations associated with the wire
+     */
+    Map<Operation<?>, InboundInvocationChain> getCallbackInvocationChains();
+
+    /**
+     * Adds the callback invocation chain associated with the given operation
+     *
+     * @param operation the service operation
+     * @param chain     the invocation chain
+     */
+    void addCallbackInvocationChain(Operation<?> operation, InboundInvocationChain chain);
+
 
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org