|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tuscany.sca.node.SCANode2Factory.NodeProxy
public static class SCANode2Factory.NodeProxy
Method Summary | ||
---|---|---|
|
cast(B target)
Cast a type-safe reference to a CallahbleReference. |
|
static
|
createProxy(java.lang.Class<T> type,
java.lang.Object node)
|
|
|
getService(java.lang.Class<B> businessInterface,
java.lang.String serviceName)
Returns a proxy for a service provided by a component in the SCA domain. |
|
|
getServiceReference(java.lang.Class<B> businessInterface,
java.lang.String serviceName)
Returns a ServiceReference for a service provided by a component in the SCA domain. |
|
void |
start()
Start the composite loaded in the node. |
|
void |
stop()
Stop the composite loaded in the node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T> T createProxy(java.lang.Class<T> type, java.lang.Object node)
public <B,R extends org.osoa.sca.CallableReference<B>> R cast(B target) throws java.lang.IllegalArgumentException
SCAClient
cast
in interface SCAClient
B
- the Java type of the business interface for the referenceR
- the type of reference to be returnedtarget
- a reference proxy provided by the SCA runtime
java.lang.IllegalArgumentException
- if the supplied instance is not a
reference supplied by the SCA runtimepublic <B> B getService(java.lang.Class<B> businessInterface, java.lang.String serviceName)
SCAClient
getService
in interface SCAClient
B
- the Java type of the business interface for the servicebusinessInterface
- the interface that will be used to invoke the
serviceserviceName
- the name of the service
public <B> org.osoa.sca.ServiceReference<B> getServiceReference(java.lang.Class<B> businessInterface, java.lang.String serviceName)
SCAClient
getServiceReference
in interface SCAClient
B
- the Java type of the business interface for the servicebusinessInterface
- the interface that will be used to invoke the
serviceserviceName
- the name of the service
public void start()
SCANode
start
in interface SCANode
public void stop()
SCANode
stop
in interface SCANode
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |