org.apache.tuscany.sca.assembly.builder
Interface DomainBuilder


public interface DomainBuilder

A builder that handles the configuration of the components inside a composite and the wiring of component references to component services.


Method Summary
 Service findServiceForReference(Composite composite, java.lang.String referenceName)
          Find the service object given a reference name
 java.lang.String getComponentNameFromReference(java.lang.String referenceName)
          Get the component name out of the reference name that might look like Component/Service
 java.lang.String getServiceNameFromReference(java.lang.String referenceName)
          Get the service name out of the reference name that might look like Component/Service
 void updateDomainLevelServiceURI(Composite domainLevelComposite, java.lang.String referenceName, java.lang.String bindingClassName, java.lang.String URI)
          Locates the referenced service and updates the URI on the identified binding
 java.util.List<Composite> wireDomain(Composite domainLevelComposite)
          Wire up the references and service in a domain returning a list of the composites that have changed
 

Method Detail

wireDomain

java.util.List<Composite> wireDomain(Composite domainLevelComposite)
Wire up the references and service in a domain returning a list of the composites that have changed

Parameters:
domainLevelCompsite -
Returns:
a list of change composites
Throws:
CompositeBuilderException

updateDomainLevelServiceURI

void updateDomainLevelServiceURI(Composite domainLevelComposite,
                                 java.lang.String referenceName,
                                 java.lang.String bindingClassName,
                                 java.lang.String URI)
Locates the referenced service and updates the URI on the identified binding

Parameters:
domainLevelComposite -
referenceName -
bindingClassName -
URI -

getComponentNameFromReference

java.lang.String getComponentNameFromReference(java.lang.String referenceName)
Get the component name out of the reference name that might look like Component/Service

Parameters:
referenceName -
Returns:

getServiceNameFromReference

java.lang.String getServiceNameFromReference(java.lang.String referenceName)
Get the service name out of the reference name that might look like Component/Service

Parameters:
referenceName -
Returns:

findServiceForReference

Service findServiceForReference(Composite composite,
                                java.lang.String referenceName)
Find the service object given a reference name

Parameters:
composite -
referenceName -
Returns: