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/01/08 12:04:48 UTC

svn commit: r494022 - in /incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi: component/AtomicComponent.java component/Component.java extension/CompositeComponentExtension.java

Author: jmarino
Date: Mon Jan  8 03:04:42 2007
New Revision: 494022

URL: http://svn.apache.org/viewvc?view=rev&rev=494022
Log:
move atomic-related methods down to AtomicComponent

Modified:
    incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/component/AtomicComponent.java
    incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/component/Component.java
    incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/extension/CompositeComponentExtension.java

Modified: incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/component/AtomicComponent.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/component/AtomicComponent.java?view=diff&rev=494022&r1=494021&r2=494022
==============================================================================
--- incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/component/AtomicComponent.java (original)
+++ incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/component/AtomicComponent.java Mon Jan  8 03:04:42 2007
@@ -18,7 +18,11 @@
  */
 package org.apache.tuscany.spi.component;
 
+import java.util.List;
+
 import org.apache.tuscany.spi.ObjectCreationException;
+import org.apache.tuscany.spi.wire.InboundWire;
+import org.apache.tuscany.spi.wire.OutboundWire;
 
 /**
  * The runtime instantiation of an SCA atomic, or leaf-type, component
@@ -62,6 +66,25 @@
      * @return the maximum age a conversation may remain active in milliseconds if the implementation is conversational
      */
     long getMaxAge();
+
+    /**
+     * Adds a target-side wire. Target-side wire factories contain the invocation chains associated with the destination
+     * service of a wire
+     */
+    void addInboundWire(InboundWire wire);
+
+    /**
+     * Adds a source-side wire for the given reference. Source-side wires contain the invocation chains for a reference
+     * in the implementation associated with the instance wrapper created by this configuration.
+     */
+    void addOutboundWire(OutboundWire wire);
+
+    /**
+     * Adds a set of source-side multiplicity wires for the given reference. Source-side wires contain the invocation
+     * chains for a reference in the implementation associated with the instance wrapper created by this configuration.
+     * FIXME should take ServiceContract
+     */
+    void addOutboundWires(Class<?> multiplicityClass, List<OutboundWire> wires);
 
     /**
      * Notifies the given instance of an initialization event.

Modified: incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/component/Component.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/component/Component.java?view=diff&rev=494022&r1=494021&r2=494022
==============================================================================
--- incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/component/Component.java (original)
+++ incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/component/Component.java Mon Jan  8 03:04:42 2007
@@ -43,35 +43,23 @@
     void setScopeContainer(ScopeContainer scopeContainer);
 
     /**
-     * Returns the wire associated with the given service name or null if not found
+     * Returns the wire associated with the given service name or null if not found.
+     *
+     * @return the wire associated with the given service name or null if not found.
      */
     InboundWire getInboundWire(String serviceName);
 
     /**
-     * Adds a target-side wire. Target-side wire factories contain the invocation chains associated with the destination
-     * service of a wire
-     */
-    void addInboundWire(InboundWire wire);
-
-    /**
-     * Returns a map of inbound wires for a service.
+     * Returns a map of inbound wires.
+     *
+     * @return a map of inbound wires.
      */
     Collection<InboundWire> getInboundWires();
 
     /**
-     * Adds a source-side wire for the given reference. Source-side wires contain the invocation chains for a reference
-     * in the implementation associated with the instance wrapper created by this configuration.
-     */
-    void addOutboundWire(OutboundWire wire);
-
-    /**
-     * Adds a set of source-side multiplicity wires for the given reference. Source-side wires contain the invocation
-     * chains for a reference in the implementation associated with the instance wrapper created by this configuration.
-     */
-    void addOutboundWires(Class<?> multiplicityClass, List<OutboundWire> wires);
-
-    /**
      * Returns a map of source-side wires for references. There may be 1..n wires per reference.
+     *
+     * @return a map of source-side wires for references.
      */
     Map<String, List<OutboundWire>> getOutboundWires();
 
@@ -82,20 +70,21 @@
      * @param targetName   the service name
      * @param operation    the operation to invoke
      * @param callbackWire the callback wire or null if the associated wire is unidirectional
+     * @return the target invoker
      * @throws TargetInvokerCreationException
      */
     TargetInvoker createTargetInvoker(String targetName, Operation operation, InboundWire callbackWire)
         throws TargetInvokerCreationException;
 
     /**
-     * Gets the default property values associated with the component.
+     * Returns the default property values associated with the component.
      *
-     * @return Default property values associated with the component.
+     * @return default property values associated with the component.
      */
     Map<String, PropertyValue<?>> getDefaultPropertyValues();
 
     /**
-     * Gets the default property values associated with the component.
+     * Sets the default property values associated with the component.
      *
      * @param defaultPropertyValues Default property values associated with the component.
      */

Modified: incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/extension/CompositeComponentExtension.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/extension/CompositeComponentExtension.java?view=diff&rev=494022&r1=494021&r2=494022
==============================================================================
--- incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/extension/CompositeComponentExtension.java (original)
+++ incubator/tuscany/java/sca/kernel/spi/src/main/java/org/apache/tuscany/spi/extension/CompositeComponentExtension.java Mon Jan  8 03:04:42 2007
@@ -179,20 +179,8 @@
         }
     }
 
-    public void addOutboundWire(OutboundWire wire) {
-
-    }
-
-    public void addOutboundWires(Class<?> multiplicityClass, List<OutboundWire> wires) {
-
-    }
-
     public Map<String, List<OutboundWire>> getOutboundWires() {
         return null;
-    }
-
-    public void addInboundWire(InboundWire wire) {
-        //TODO implement
     }
 
     public InboundWire getInboundWire(String serviceName) {



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