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

For more information, please explore the Attic.


org.osoa.sca
Interface CallableReference<B>

Type Parameters:
B - the Java interface associated with this reference
All Known Subinterfaces:
ServiceReference<B>

public interface CallableReference<B>

Common superclass for references that can be passed between components.

Version:
$Rev: 512302 $ $Date: 2007-02-27 16:16:41 +0000 (Tue, 27 Feb 2007) $

Method Summary
 java.lang.Class<B> getBusinessInterface()
          Returns the Java class for the business interface associated with this reference.
 java.lang.Object getCallbackID()
          Returns the callback ID.
 Conversation getConversation()
          Returns the conversation associated with this reference.
 B getService()
          Returns a type-safe reference to the target of this reference.
 boolean isConversational()
          Returns true if this reference is conversational.
 

Method Detail

getService

B getService()
Returns a type-safe reference to the target of this reference. The instance returned is guaranteed to implement the business interface for this reference but may not be a proxy as defined by java.lang.reflect.Proxy.

Returns:
a proxy to the target that implements the business interface associated with this reference

getBusinessInterface

java.lang.Class<B> getBusinessInterface()
Returns the Java class for the business interface associated with this reference.

Returns:
the Class for the business interface associated with this reference

isConversational

boolean isConversational()
Returns true if this reference is conversational.

Returns:
true if this reference is conversational

getConversation

Conversation getConversation()
Returns the conversation associated with this reference. Returns null if no conversation is currently active.

Returns:
the conversation associated with this reference; may be null

getCallbackID

java.lang.Object getCallbackID()
Returns the callback ID.

Returns:
the callback ID