org.apache.tuscany.sca.assembly
Interface Composite

All Superinterfaces:
Base, java.lang.Cloneable, ComponentType, Extensible, Implementation, IntentAttachPoint, PolicySetAttachPoint
All Known Implementing Classes:
CompositeImpl

public interface Composite
extends Implementation, Extensible, java.lang.Cloneable, PolicySetAttachPoint

Represents a composite.


Method Summary
 java.lang.Object clone()
          Returns a clone of the component type.
 java.lang.Boolean getAutowire()
          Return the Boolean value of autowire
 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 isLocal()
          Returns true if all the components within the composite must run in the same process.
 void setAutowire(java.lang.Boolean autowire)
          Sets whether component references should be autowired.
 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
isUnresolved, setUnresolved
 
Methods inherited from interface org.apache.tuscany.sca.assembly.Extensible
getExtensions
 
Methods inherited from interface org.apache.tuscany.sca.policy.PolicySetAttachPoint
getApplicablePolicySets, getPolicySets
 
Methods inherited from interface org.apache.tuscany.sca.policy.IntentAttachPoint
getRequiredIntents, getType, setType
 

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

getAutowire

java.lang.Boolean getAutowire()
Return the Boolean value of autowire

Returns:
null/TRUE/FALSE

setAutowire

void setAutowire(java.lang.Boolean autowire)
Sets whether component references should be autowired.

Parameters:
autowire - whether component references should be autowired

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