org.apache.tuscany.sca.assembly.impl
Class CompositeImpl

java.lang.Object
  extended by org.apache.tuscany.sca.assembly.impl.BaseImpl
      extended by org.apache.tuscany.sca.assembly.impl.ExtensibleImpl
          extended by org.apache.tuscany.sca.assembly.impl.ComponentTypeImpl
              extended by org.apache.tuscany.sca.assembly.impl.ImplementationImpl
                  extended by org.apache.tuscany.sca.assembly.impl.CompositeImpl
All Implemented Interfaces:
java.lang.Cloneable, Base, ComponentType, Composite, Extensible, Implementation, OperationsConfigurator, IntentAttachPoint, PolicySetAttachPoint

public class CompositeImpl
extends ImplementationImpl
implements Composite, java.lang.Cloneable

Implementation of a Composite.


Constructor Summary
protected CompositeImpl()
          Constructs a new composite.
 
Method Summary
 java.lang.Object clone()
          Returns a clone of the component type.
 boolean equals(java.lang.Object obj)
           
 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.
 int hashCode()
           
 boolean isAutowire()
           
 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.
 java.lang.String toString()
           
 
Methods inherited from class org.apache.tuscany.sca.assembly.impl.ImplementationImpl
getApplicablePolicySets, getConfiguredOperations, getPolicySets, getRequiredIntents, getType, setType
 
Methods inherited from class org.apache.tuscany.sca.assembly.impl.ComponentTypeImpl
getConstrainingType, getProperties, getReferences, getServices, getURI, setConstrainingType, setURI
 
Methods inherited from class org.apache.tuscany.sca.assembly.impl.ExtensibleImpl
getExtensions
 
Methods inherited from class org.apache.tuscany.sca.assembly.impl.BaseImpl
isUnresolved, setUnresolved
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
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
 

Constructor Detail

CompositeImpl

protected CompositeImpl()
Constructs a new composite.

Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Description copied from interface: Composite
Returns a clone of the component type.

Specified by:
clone in interface Composite
Overrides:
clone in class ComponentTypeImpl
Returns:
a clone of the component type
Throws:
java.lang.CloneNotSupportedException

getComponents

public java.util.List<Component> getComponents()
Description copied from interface: Composite
Returns a list of components contained in this composite.

Specified by:
getComponents in interface Composite
Returns:
a list of components contained in this composite

getIncludes

public java.util.List<Composite> getIncludes()
Description copied from interface: Composite
Returns a list of composites included in this composite.

Specified by:
getIncludes in interface Composite
Returns:
a list of composites included in this composite.

getName

public javax.xml.namespace.QName getName()
Description copied from interface: Composite
Returns the name of the composite.

Specified by:
getName in interface Composite
Returns:
the name of the composite

getWires

public java.util.List<Wire> getWires()
Description copied from interface: Composite
Returns a list of wires contained in this composite.

Specified by:
getWires in interface Composite
Returns:
a list of wires contained in this composite

isLocal

public boolean isLocal()
Description copied from interface: Composite
Returns true if all the components within the composite must run in the same process.

Specified by:
isLocal in interface Composite
Returns:
true if all the components within the composite must run in the same process

setLocal

public void setLocal(boolean local)
Description copied from interface: Composite
Sets whether all the components within the composite must run in the same process.

Specified by:
setLocal in interface Composite
Parameters:
local - whether all the components within the composite must run in the same process

isAutowire

public boolean isAutowire()

setAutowire

public void setAutowire(java.lang.Boolean autowire)
Description copied from interface: Composite
Sets whether component references should be autowired.

Specified by:
setAutowire in interface Composite
Parameters:
autowire - whether component references should be autowired

getAutowire

public java.lang.Boolean getAutowire()
Description copied from interface: Composite
Return the Boolean value of autowire

Specified by:
getAutowire in interface Composite
Returns:
null/TRUE/FALSE

setName

public void setName(javax.xml.namespace.QName name)
Description copied from interface: Composite
Sets the name of the composite.

Specified by:
setName in interface Composite
Parameters:
name - the name of the composite

hashCode

public int hashCode()
Overrides:
hashCode in class ComponentTypeImpl

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class ComponentTypeImpl

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object