You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by sl...@apache.org on 2007/07/19 18:02:00 UTC

svn commit: r557666 - /incubator/tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/StatelessScopeContainer.java

Author: slaws
Date: Thu Jul 19 09:01:58 2007
New Revision: 557666

URL: http://svn.apache.org/viewvc?view=rev&rev=557666
Log:
TUSCANY-1377 
Override remove() to do nothing as we can have stateless conversational services where the runtime tries to remove the component instance from the scope container

Modified:
    incubator/tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/StatelessScopeContainer.java

Modified: incubator/tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/StatelessScopeContainer.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/StatelessScopeContainer.java?view=diff&rev=557666&r1=557665&r2=557666
==============================================================================
--- incubator/tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/StatelessScopeContainer.java (original)
+++ incubator/tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/StatelessScopeContainer.java Thu Jul 19 09:01:58 2007
@@ -20,6 +20,7 @@
 
 import org.apache.tuscany.sca.runtime.RuntimeComponent;
 import org.apache.tuscany.sca.scope.InstanceWrapper;
+import org.apache.tuscany.sca.scope.PersistenceException;
 import org.apache.tuscany.sca.scope.Scope;
 import org.apache.tuscany.sca.scope.TargetDestructionException;
 import org.apache.tuscany.sca.scope.TargetResolutionException;
@@ -51,4 +52,12 @@
         throws TargetDestructionException {
         wrapper.stop();
     }
+    
+    /**
+     * The stateless scope container just does nothing if you try
+     * and remove component instances from it
+     */
+    public void remove() throws PersistenceException {
+        // Intentially left blank
+    }    
 }



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