Author: antelder
Date: Thu Apr  8 11:02:01 2010
New Revision: 931875

URL: http://svn.apache.org/viewvc?rev=931875&view=rev
Log:
Update sca-api with latest OASIS code, these ones have only formatting and 
javadoc changes

Modified:
    
tuscany/sca-java-2.x/trunk/modules/sca-api/src/main/java/org/oasisopen/sca/ServiceReference.java

Modified: 
tuscany/sca-java-2.x/trunk/modules/sca-api/src/main/java/org/oasisopen/sca/ServiceReference.java
URL: 
http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/sca-api/src/main/java/org/oasisopen/sca/ServiceReference.java?rev=931875&r1=931874&r2=931875&view=diff
==============================================================================
--- 
tuscany/sca-java-2.x/trunk/modules/sca-api/src/main/java/org/oasisopen/sca/ServiceReference.java
 (original)
+++ 
tuscany/sca-java-2.x/trunk/modules/sca-api/src/main/java/org/oasisopen/sca/ServiceReference.java
 Thu Apr  8 11:02:01 2010
@@ -1,19 +1,36 @@
 /*
- * Copyright(C) OASIS(R) 2005,2009. All Rights Reserved.
+ * Copyright(C) OASIS(R) 2005,2010. All Rights Reserved.
  * OASIS trademark, IPR and other policies apply.
  */
 package org.oasisopen.sca;
 
-import java.io.Serializable;
-
-
 /**
- * A ServiceReference represents a client's perspective of a reference to 
another service.
+ * The ServiceReference interface represents a component reference.
+ * It can be injected using the @Reference annotation
+ * on a field, a setter method, or constructor parameter taking the
+ * type ServiceReference.
  *
- * @version $Rev$ $Date$
- * @param <B> the Java interface associated with this reference
+ * @param     <B> the type of the service reference
  */
-public interface ServiceReference<B> extends Serializable {
+public interface ServiceReference<B> extends java.io.Serializable {
+
+    /**
+     * Returns a type-safe reference to the target of this reference.
+     * The instance returned is guaranteed to implement the business
+     * interface for this reference.  The value returned is a proxy
+     * to the target that implements the business interface associated
+     * with this reference.
+     * 
+     * @return a type-safe reference to the target of this reference.
+     */
     B getService();
-    Class<B> getBusinessInterface();    
+
+    /**
+     * Returns the Java class for the business interface associated
+     * with this reference.
+     * 
+     * @return the Java class for the business interface associated
+     *         with this reference.
+     */
+    Class<B> getBusinessInterface();
 }


Reply via email to