From 975d98a42e868c42c6c80b4acc09c84ea6a8c8ca Mon Sep 17 00:00:00 2001 From: antelder Date: Thu, 8 Apr 2010 11:02:01 +0000 Subject: Update sca-api with latest OASIS code, these ones have only formatting and javadoc changes git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@931875 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/oasisopen/sca/ServiceReference.java | 35 ++++++++++++++++------ 1 file changed, 26 insertions(+), 9 deletions(-) (limited to 'sca-java-2.x') diff --git a/sca-java-2.x/trunk/modules/sca-api/src/main/java/org/oasisopen/sca/ServiceReference.java b/sca-java-2.x/trunk/modules/sca-api/src/main/java/org/oasisopen/sca/ServiceReference.java index d89ed54d10..d2d62763fa 100644 --- a/sca-java-2.x/trunk/modules/sca-api/src/main/java/org/oasisopen/sca/ServiceReference.java +++ b/sca-java-2.x/trunk/modules/sca-api/src/main/java/org/oasisopen/sca/ServiceReference.java @@ -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 the Java interface associated with this reference + * @param the type of the service reference */ -public interface ServiceReference extends Serializable { +public interface ServiceReference 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 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 getBusinessInterface(); } -- cgit v1.2.3