tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmar...@apache.org
Subject svn commit: r419758 - /incubator/tuscany/sandbox/jboynes/sca/core2/src/main/java/org/apache/tuscany/core/implementation/java/JavaTargetInvoker.java
Date Fri, 07 Jul 2006 01:20:13 GMT
Author: jmarino
Date: Thu Jul  6 18:20:13 2006
New Revision: 419758

URL: http://svn.apache.org/viewvc?rev=419758&view=rev
Log:
field rename

Modified:
    incubator/tuscany/sandbox/jboynes/sca/core2/src/main/java/org/apache/tuscany/core/implementation/java/JavaTargetInvoker.java

Modified: incubator/tuscany/sandbox/jboynes/sca/core2/src/main/java/org/apache/tuscany/core/implementation/java/JavaTargetInvoker.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/jboynes/sca/core2/src/main/java/org/apache/tuscany/core/implementation/java/JavaTargetInvoker.java?rev=419758&r1=419757&r2=419758&view=diff
==============================================================================
--- incubator/tuscany/sandbox/jboynes/sca/core2/src/main/java/org/apache/tuscany/core/implementation/java/JavaTargetInvoker.java
(original)
+++ incubator/tuscany/sandbox/jboynes/sca/core2/src/main/java/org/apache/tuscany/core/implementation/java/JavaTargetInvoker.java
Thu Jul  6 18:20:13 2006
@@ -23,25 +23,25 @@
 import org.apache.tuscany.core.wire.PojoTargetInvoker;
 
 /**
- * Uses a scope context to resolve an implementation instance based on the current thread
context
+ * Uses a scope component to resolve an implementation instance based on the current thread
component
  *
  * @version $Rev$ $Date$
  */
 public class JavaTargetInvoker extends PojoTargetInvoker {
 
-    private JavaAtomicComponent context;
+    private JavaAtomicComponent component;
     private Object target;
 
     /**
      * Creates a new invoker
      *
      * @param operation the operation the invoker is associated with
-     * @param context   the scope context the component is resolved in
+     * @param context   the scope component the component is resolved in
      */
     public JavaTargetInvoker(Method operation, JavaAtomicComponent context) {
         super(operation);
-        assert context != null : "No atomic context specified";
-        this.context = context;
+        assert context != null : "No atomic component specified";
+        this.component = context;
     }
 
     /**
@@ -49,10 +49,10 @@
      */
     protected Object getInstance() throws TargetException {
         if (!cacheable) {
-            return context.getTargetInstance();
+            return component.getTargetInstance();
         } else {
             if (target == null) {
-                target = context.getTargetInstance();
+                target = component.getTargetInstance();
             }
             return target;
         }
@@ -62,7 +62,7 @@
         JavaTargetInvoker invoker = (JavaTargetInvoker) super.clone();
         invoker.target = null;
         invoker.cacheable = this.cacheable;
-        invoker.context = this.context;
+        invoker.component = this.component;
         return invoker;
     }
 }



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


Mime
View raw message