|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tuscany.sca.core.context.CallableReferenceImpl<B>
B
- the type of the business interfacepublic class CallableReferenceImpl<B>
Base class for implementations of service and callback references.
Field Summary | |
---|---|
protected Binding |
binding
|
protected java.lang.Class<B> |
businessInterface
|
protected java.lang.Object |
callbackID
|
protected RuntimeComponent |
component
|
protected CompositeActivator |
compositeActivator
|
protected ExtendedConversation |
conversation
|
protected java.lang.Object |
conversationID
|
protected ConversationManager |
conversationManager
|
protected java.lang.Object |
proxy
|
protected ProxyFactory |
proxyFactory
|
protected RuntimeComponentReference |
reference
|
protected java.lang.String |
scdl
|
Constructor Summary | |
---|---|
|
CallableReferenceImpl()
|
protected |
CallableReferenceImpl(java.lang.Class<B> businessInterface,
RuntimeComponent component,
RuntimeComponentReference reference,
Binding binding,
ProxyFactory proxyFactory,
CompositeActivator compositeActivator)
|
|
CallableReferenceImpl(java.lang.Class<B> businessInterface,
RuntimeWire wire,
ProxyFactory proxyFactory)
|
|
CallableReferenceImpl(javax.xml.stream.XMLStreamReader xmlReader)
|
Method Summary | |
---|---|
void |
attachCallbackID(java.lang.Object callbackID)
|
void |
attachConversation(ExtendedConversation conversation)
|
void |
attachConversation(java.lang.Object conversationID)
|
void |
attachConversationID(java.lang.Object conversationID)
|
protected void |
bind(RuntimeWire wire)
|
protected java.lang.Object |
createProxy()
|
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. |
org.osoa.sca.Conversation |
getConversation()
Returns the conversation associated with this reference. |
EndpointReference |
getEndpointReference()
|
B |
getProxy()
|
protected ReferenceParameters |
getReferenceParameters()
|
RuntimeWire |
getRuntimeWire()
|
B |
getService()
Returns a type-safe reference to the target of this reference. |
javax.xml.stream.XMLStreamReader |
getXMLReader()
|
protected void |
initCallbackID()
|
boolean |
isConversational()
Returns true if this reference is conversational. |
void |
readExternal(java.io.ObjectInput in)
|
protected Component |
resolveComponentURI(java.lang.String componentURI)
Resolves the specified URI to a Component using the compositeActivator. |
protected ComponentService |
resolveServiceURI(java.lang.String bindingURI,
Component targetComponent)
Examines the Services on the specified Component and returns the Service that matches the specified Binding URI. |
void |
setProxy(java.lang.Object proxy)
|
java.lang.String |
toXMLString()
|
void |
writeExternal(java.io.ObjectOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected transient CompositeActivator compositeActivator
protected transient ProxyFactory proxyFactory
protected transient java.lang.Class<B> businessInterface
protected transient java.lang.Object proxy
protected transient ConversationManager conversationManager
protected transient ExtendedConversation conversation
protected transient java.lang.Object conversationID
protected java.lang.Object callbackID
protected transient RuntimeComponent component
protected transient RuntimeComponentReference reference
protected transient Binding binding
protected java.lang.String scdl
Constructor Detail |
---|
public CallableReferenceImpl()
public CallableReferenceImpl(javax.xml.stream.XMLStreamReader xmlReader) throws java.lang.Exception
java.lang.Exception
protected CallableReferenceImpl(java.lang.Class<B> businessInterface, RuntimeComponent component, RuntimeComponentReference reference, Binding binding, ProxyFactory proxyFactory, CompositeActivator compositeActivator)
public CallableReferenceImpl(java.lang.Class<B> businessInterface, RuntimeWire wire, ProxyFactory proxyFactory)
Method Detail |
---|
public RuntimeWire getRuntimeWire()
protected void bind(RuntimeWire wire)
protected void initCallbackID()
public B getProxy() throws ObjectCreationException
ObjectCreationException
public void setProxy(java.lang.Object proxy)
protected java.lang.Object createProxy() throws java.lang.Exception
java.lang.Exception
public B getService()
org.osoa.sca.CallableReference
getService
in interface org.osoa.sca.CallableReference<B>
public java.lang.Class<B> getBusinessInterface()
org.osoa.sca.CallableReference
getBusinessInterface
in interface org.osoa.sca.CallableReference<B>
public boolean isConversational()
org.osoa.sca.CallableReference
isConversational
in interface org.osoa.sca.CallableReference<B>
public org.osoa.sca.Conversation getConversation()
org.osoa.sca.CallableReference
getConversation
in interface org.osoa.sca.CallableReference<B>
public java.lang.Object getCallbackID()
org.osoa.sca.CallableReference
getCallbackID
in interface org.osoa.sca.CallableReference<B>
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
Externalizable.readExternal(java.io.ObjectInput)
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
Externalizable.writeExternal(java.io.ObjectOutput)
public java.lang.String toXMLString() throws java.io.IOException
java.io.IOException
public void attachCallbackID(java.lang.Object callbackID)
public void attachConversationID(java.lang.Object conversationID)
public void attachConversation(ExtendedConversation conversation)
public void attachConversation(java.lang.Object conversationID)
protected ReferenceParameters getReferenceParameters()
public EndpointReference getEndpointReference()
public javax.xml.stream.XMLStreamReader getXMLReader()
protected Component resolveComponentURI(java.lang.String componentURI)
componentURI
- The URI of the Component to resolve
protected ComponentService resolveServiceURI(java.lang.String bindingURI, Component targetComponent)
bindingURI
- The Binding URI to resolve on the ComponenttargetComponent
- The Component containing the Services
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |