org.apache.tuscany.sca.assembly
Interface Composite

All Superinterfaces:
Base, ComponentType, Implementation, IntentAttachPoint, PolicySetAttachPoint, Visitable

public interface Composite
extends Implementation, Visitable

Represents a composite.

Version:
$Rev: 537384 $ $Date: 2007-05-12 12:02:56 +0100 (Sat, 12 May 2007) $

Method Summary
 java.lang.Object clone()
          Returns a clone of the component type.
 java.util.List<Component> getComponents()
          Returns a list of components contained in this composite.
 java.util.List<Composite> getIncludes()
          Returns a list of composites included in this composite.
 javax.xml.namespace.QName getName()
          Returns the name of the composite.
 java.util.List<Wire> getWires()
          Returns a list of wires contained in this composite.
 boolean isAutowire()
          Returns true if autowiring is enabled in the composite.
 boolean isLocal()
          Returns true if all the components within the composite must run in the same process.
 void setAutowire(boolean autowire)
          Sets whether autowiring is enabled in the composite.
 void setLocal(boolean local)
          Sets whether all the components within the composite must run in the same process.
 void setName(javax.xml.namespace.QName name)
          Sets the name of the composite.
 
Methods inherited from interface org.apache.tuscany.sca.assembly.ComponentType
getConstrainingType, getProperties, getReferences, getServices, getURI, setConstrainingType, setURI
 
Methods inherited from interface org.apache.tuscany.sca.assembly.Base
getExtensions, isUnresolved, setUnresolved
 
Methods inherited from interface org.apache.tuscany.sca.policy.PolicySetAttachPoint
getPolicySets
 
Methods inherited from interface org.apache.tuscany.sca.assembly.Visitable
accept
 

Method Detail

getName

javax.xml.namespace.QName getName()
Returns the name of the composite.

Returns:
the name of the composite

setName

void setName(javax.xml.namespace.QName name)
Sets the name of the composite.

Parameters:
name - the name of the composite

getIncludes

java.util.List<Composite> getIncludes()
Returns a list of composites included in this composite.

Returns:
a list of composites included in this composite.

getComponents

java.util.List<Component> getComponents()
Returns a list of components contained in this composite.

Returns:
a list of components contained in this composite

getWires

java.util.List<Wire> getWires()
Returns a list of wires contained in this composite.

Returns:
a list of wires contained in this composite

isLocal

boolean isLocal()
Returns true if all the components within the composite must run in the same process.

Returns:
true if all the components within the composite must run in the same process

setLocal

void setLocal(boolean local)
Sets whether all the components within the composite must run in the same process.

Parameters:
local - whether all the components within the composite must run in the same process

isAutowire

boolean isAutowire()
Returns true if autowiring is enabled in the composite.

Returns:
true if autowiring is enabled in the composite

setAutowire

void setAutowire(boolean autowire)
Sets whether autowiring is enabled in the composite.

Parameters:
autowire - whether autowiring is enabled in the composite

clone

java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Returns a clone of the component type.

Returns:
a clone of the component type
Throws:
java.lang.CloneNotSupportedException