|
|||||||||
| 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
org.apache.tuscany.sca.host.embedded.impl.DefaultSCADomain
public class DefaultSCADomain
A default SCA domain facade implementation.
| Field Summary |
|---|
| Fields inherited from class org.apache.tuscany.sca.host.embedded.SCADomain |
|---|
theDomain |
| Constructor Summary | |
|---|---|
DefaultSCADomain(java.lang.ClassLoader runtimeClassLoader,
java.lang.ClassLoader applicationClassLoader,
java.lang.String domainURI,
java.lang.String contributionLocation,
java.lang.String... composites)
Constructs a new domain facade. |
|
| Method Summary | ||
|---|---|---|
|
cast(B target)
Cast a type-safe reference to a CallableReference. |
|
void |
close()
Close the SCA domain. |
|
Component |
getComponent(java.lang.String componentName)
|
|
ComponentManager |
getComponentManager()
|
|
java.util.Set<java.lang.String> |
getComponentNames()
|
|
|
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 name)
Returns a ServiceReference for a service provided by a component in the SCA domain. |
|
java.lang.String |
getURI()
Returns the URI of the SCA Domain. |
|
void |
init()
|
|
void |
startComponent(java.lang.String componentName)
|
|
void |
stopComponent(java.lang.String componentName)
|
|
| Methods inherited from class org.apache.tuscany.sca.host.embedded.SCADomain |
|---|
connect, newInstance, newInstance, newInstance, removeInstance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultSCADomain(java.lang.ClassLoader runtimeClassLoader,
java.lang.ClassLoader applicationClassLoader,
java.lang.String domainURI,
java.lang.String contributionLocation,
java.lang.String... composites)
domainURI - contributionLocation - composites - | Method Detail |
|---|
public void init()
public void close()
SCADomain
close in class SCADomain
public <B,R extends org.osoa.sca.CallableReference<B>> R cast(B target)
throws java.lang.IllegalArgumentException
SCADomain
cast in class SCADomainB - 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 <B> B getService(java.lang.Class<B> businessInterface,
java.lang.String serviceName)
SCADomain
getService in class SCADomainB - 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 name)
SCADomain
getServiceReference in class SCADomainB - the Java type of the business interface for the servicebusinessInterface - the interface that will be used to invoke the
servicename - the name of the service
public java.lang.String getURI()
SCADomain
getURI in class SCADomainpublic ComponentManager getComponentManager()
getComponentManager in class SCADomainpublic java.util.Set<java.lang.String> getComponentNames()
public Component getComponent(java.lang.String componentName)
public void startComponent(java.lang.String componentName)
throws ActivationException
ActivationException
public void stopComponent(java.lang.String componentName)
throws ActivationException
ActivationException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||