Author: rfeng
Date: Fri Aug 31 09:41:22 2007
New Revision: 571516

URL: http://svn.apache.org/viewvc?rev=571516&view=rev
Log:
Apply the patch for TUSCANY-1641

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

Modified: 
incubator/tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/CompositeScopeContainer.java
URL: 
http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/CompositeScopeContainer.java?rev=571516&r1=571515&r2=571516&view=diff
==============================================================================
--- 
incubator/tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/CompositeScopeContainer.java
 (original)
+++ 
incubator/tuscany/java/sca/modules/core/src/main/java/org/apache/tuscany/sca/core/scope/CompositeScopeContainer.java
 Fri Aug 31 09:41:22 2007
@@ -36,6 +36,13 @@
     @Override
     public synchronized void stop() {
         super.stop();
+        if (wrapper != null) {
+            try {
+                wrapper.stop();
+            } catch (TargetDestructionException e) {
+                throw new IllegalStateException(e);
+            }
+        }
         wrapper = null;
     }
 
@@ -59,7 +66,7 @@
     @Override
     public synchronized void start() {
         super.start();
-        if(isEagerInit()) {
+        if (isEagerInit()) {
             try {
                 getWrapper(null);
             } catch (TargetResolutionException e) {



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to