org.osoa.sca
Interface CallableReference<B>

Type Parameters:
B -
All Known Subinterfaces:
ServiceReference<B>

public interface CallableReference<B>


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.

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 Java 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. Returns null if no conversation is currently active.

getCallbackID

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

Returns:
the callback ID.


Copyright © 2009. All Rights Reserved.