You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by jb...@apache.org on 2007/03/11 15:49:36 UTC

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

Author: jboynes
Date: Sun Mar 11 07:49:35 2007
New Revision: 516912

URL: http://svn.apache.org/viewvc?view=rev&rev=516912
Log:
deprecate methods in AtomicComponent and Component that will not be needed after the transition to physical builders

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

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=516912&r1=516911&r2=516912
==============================================================================
--- 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 Sun Mar 11 07:49:35 2007
@@ -64,6 +64,15 @@
     long getMaxAge();
 
     /**
+     * Create a new implementation instance, fully injected with all property and reference values.
+     * The instance's lifecycle callbacks must not have been called.
+     *
+     * @return a wrapper for a new implementation instance
+     * @throws ObjectCreationException if there was a problem instantiating the implementation
+     */
+    InstanceWrapper<?> createInstanceWrapper() throws ObjectCreationException;
+
+    /**
      * Creates a new implementation instance, generally used as a callback by a {@link
      * org.apache.tuscany.spi.component.ScopeContainer}.
      *
@@ -82,20 +91,12 @@
     void removeInstance() throws ComponentException;
 
     /**
-     * Create a new implementation instance, fully injected with all property and reference values.
-     * The instance's lifecycle callbacks must not have been called.
-     *
-     * @return a wrapper for a new implementation instance
-     * @throws ObjectCreationException if there was a problem instantiating the implementation
-     */
-    InstanceWrapper<?> createInstanceWrapper() throws ObjectCreationException;
-
-    /**
      * Returns the target instance associated with the component. A target instance is the actual object a request is
      * dispatched to sans wire chain.
      *
      * @throws TargetResolutionException
      */
+    @Deprecated
     Object getTargetInstance() throws TargetResolutionException;
 
     /**
@@ -104,5 +105,6 @@
      *
      * @throws TargetResolutionException
      */
+    @Deprecated
     public Object getAssociatedTargetInstance() throws TargetResolutionException;
 }

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=516912&r1=516911&r2=516912
==============================================================================
--- 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 Sun Mar 11 07:49:35 2007
@@ -39,6 +39,7 @@
      *
      * @return the component scope
      */
+    @Deprecated
     Scope getScope();
 
     /**
@@ -81,6 +82,7 @@
      *
      * @return true if invocation dispatching can be optimized, i.e. invocation chains are not required
      */
+    @Deprecated
     boolean isOptimizable();
 
     /**
@@ -89,6 +91,7 @@
      * @param service the service to add as a child
      * @throws RegistrationException
      */
+    @Deprecated
     void register(Service service) throws RegistrationException;
 
     /**
@@ -97,6 +100,7 @@
      * @param reference the reference to add as a child
      * @throws RegistrationException
      */
+    @Deprecated
     void register(Reference reference) throws RegistrationException;
 
     /**
@@ -105,6 +109,7 @@
      * @param name the service name which is relative to the composite
      * @return the service with the given name or null if not found
      */
+    @Deprecated
     Service getService(String name);
 
     /**
@@ -113,6 +118,7 @@
      * @param name the reference name which is relative to the composite
      * @return the reference with the given name or null if not found
      */
+    @Deprecated
     Reference getReference(String name);
 
     /**
@@ -130,7 +136,7 @@
     void attachWire(Wire wire);
 
     /**
-     * Attaches a set of wires to a comoponent reference. Used for multiplicity.
+     * Attaches a set of wires to a component reference. Used for multiplicity.
      *
      * @param wires the wire to attach
      */



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