2016/05/28 - Apache Tuscany has been retired.

For more information, please explore the Attic.


org.osoa.sca
Interface ServiceReference<B>

Type Parameters:
B - the Java interface associated with this reference
All Superinterfaces:
CallableReference<B>

public interface ServiceReference<B>
extends CallableReference<B>

A ServiceReference represents a client's perspective of a reference to another service.

Version:
$Rev: 507125 $ $Date: 2007-02-13 18:05:37 +0000 (Tue, 13 Feb 2007) $

Method Summary
 java.lang.Object getCallback()
          Returns the callback object.
 java.lang.Object getConversationID()
          Returns the id supplied by the user that will be associated with conversations initiated through this reference.
 void setCallback(java.lang.Object callback)
          Sets the callback object.
 void setCallbackID(java.lang.Object callbackID)
          Sets the callback ID.
 void setConversationID(java.lang.Object conversationId)
          Set the id to associate with any conversation started through this reference.
 
Methods inherited from interface org.osoa.sca.CallableReference
getBusinessInterface, getCallbackID, getConversation, getService, isConversational
 

Method Detail

getConversationID

java.lang.Object getConversationID()
Returns the id supplied by the user that will be associated with conversations initiated through this reference.

Returns:
the id to associated with any conversation initiated through this reference

setConversationID

void setConversationID(java.lang.Object conversationId)
                       throws java.lang.IllegalStateException
Set the id to associate with any conversation started through this reference. If the value supplied is null then the id will be generated by the implementation.

Parameters:
conversationId - the user-defined id to associated with a conversation
Throws:
java.lang.IllegalStateException - if a conversation is currently associated with this reference

setCallbackID

void setCallbackID(java.lang.Object callbackID)
Sets the callback ID.

Parameters:
callbackID - the callback ID

getCallback

java.lang.Object getCallback()
Returns the callback object.

Returns:
the callback object

setCallback

void setCallback(java.lang.Object callback)
Sets the callback object.

Parameters:
callback - the callback object