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/01/24 16:50:35 UTC
svn commit: r499447 - in
/incubator/tuscany/sandbox/jboynes/sca-client/src/main/java/org/osoa/sca:
ComponentContext.java CompositeContext.java
Author: jboynes
Date: Wed Jan 24 07:50:34 2007
New Revision: 499447
URL: http://svn.apache.org/viewvc?view=rev&rev=499447
Log:
move cast method to ComponentContext so that is available to managed code
Modified:
incubator/tuscany/sandbox/jboynes/sca-client/src/main/java/org/osoa/sca/ComponentContext.java
incubator/tuscany/sandbox/jboynes/sca-client/src/main/java/org/osoa/sca/CompositeContext.java
Modified: incubator/tuscany/sandbox/jboynes/sca-client/src/main/java/org/osoa/sca/ComponentContext.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/jboynes/sca-client/src/main/java/org/osoa/sca/ComponentContext.java?view=diff&rev=499447&r1=499446&r2=499447
==============================================================================
--- incubator/tuscany/sandbox/jboynes/sca-client/src/main/java/org/osoa/sca/ComponentContext.java (original)
+++ incubator/tuscany/sandbox/jboynes/sca-client/src/main/java/org/osoa/sca/ComponentContext.java Wed Jan 24 07:50:34 2007
@@ -11,4 +11,13 @@
*/
String getURI();
+ /**
+ * Cast a type-safe reference to a ServiceReference.
+ * Converts a type-safe reference returned by locateService to an equivalent ServiceReference.
+ *
+ * @param target a reference proxy provided by the implementation
+ * @return a ServiceReference equivalent for the proxy
+ * @throws IllegalArgumentException if the supplied instance is not a reference supplied by the implementation
+ */
+ <B> ServiceReference<B> cast(B target) throws IllegalArgumentException;
}
Modified: incubator/tuscany/sandbox/jboynes/sca-client/src/main/java/org/osoa/sca/CompositeContext.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/jboynes/sca-client/src/main/java/org/osoa/sca/CompositeContext.java?view=diff&rev=499447&r1=499446&r2=499447
==============================================================================
--- incubator/tuscany/sandbox/jboynes/sca-client/src/main/java/org/osoa/sca/CompositeContext.java (original)
+++ incubator/tuscany/sandbox/jboynes/sca-client/src/main/java/org/osoa/sca/CompositeContext.java Wed Jan 24 07:50:34 2007
@@ -44,14 +44,4 @@
* @return a reference to the designated service
*/
<B> ServiceReference<B> locateServiceReference(Class<B> businessInterface, String serviceName);
-
- /**
- * Cast a type-safe reference to a ServiceReference.
- * Converts a type-safe reference returned by locateService to an equivalent ServiceReference.
- *
- * @param target a reference proxy returned by a previous invocation of locateService()
- * @return a ServiceReference equivalent for the proxy
- * @throws IllegalArgumentException if the supplied instance is not a reference supplied by the implementation
- */
- <B> ServiceReference<B> cast(B target) throws IllegalArgumentException;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org