|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tuscany.sca.host.embedded.SCADomain
public abstract class SCADomain
A handle to an SCA domain.
| Constructor Summary | |
|---|---|
SCADomain()
|
|
| Method Summary | ||
|---|---|---|
abstract
|
cast(B target)
Cast a type-safe reference to a CallableReference. |
|
void |
close()
Close the SCA domain. |
|
static SCADomain |
connect(java.lang.String domainURI)
Returns an SCADomain representing a remote SCA domain. |
|
abstract
|
getService(java.lang.Class<B> businessInterface,
java.lang.String serviceName)
Returns a proxy for a service provided by a component in the SCA domain. |
|
abstract
|
getServiceReference(java.lang.Class<B> businessInterface,
java.lang.String referenceName)
Returns a ServiceReference for a service provided by a component in the SCA domain. |
|
abstract java.lang.String |
getURI()
Returns the URI of the SCA Domain. |
|
static SCADomain |
newInstance()
Returns a new instance of a local SCA domain. |
|
static SCADomain |
newInstance(java.lang.String composite)
Returns a new instance of a local SCA domain. |
|
static SCADomain |
newInstance(java.lang.String domainURI,
java.lang.String contributionLocation,
java.lang.String... composites)
Returns a new instance of a local SCA domain. |
|
static void |
removeInstance(SCADomain domainInstance)
Removes the specified local SCA Domain instance |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SCADomain()
| Method Detail |
|---|
public static SCADomain newInstance()
public static SCADomain newInstance(java.lang.String composite)
composite - the deployable composite to include in the SCA domain.
public static SCADomain newInstance(java.lang.String domainURI,
java.lang.String contributionLocation,
java.lang.String... composites)
domainURI - the URI of the SCA domaincontributionLocation - the location of an SCA contributioncomposites - the deployable composites to include in the SCA domain.
public static void removeInstance(SCADomain domainInstance)
domainInstance - the instance to be removedpublic static SCADomain connect(java.lang.String domainURI)
domainURI - the URI of the SCA domain
public void close()
public abstract java.lang.String getURI()
public abstract <B,R extends CallableReference<B>> R cast(B target)
throws java.lang.IllegalArgumentException
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 runtime
public abstract <B> B getService(java.lang.Class<B> businessInterface,
java.lang.String serviceName)
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 abstract <B> ServiceReference<B> getServiceReference(java.lang.Class<B> businessInterface,
java.lang.String referenceName)
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||