org.apache.tuscany.sca.assembly
Interface Component

All Superinterfaces:
Base, java.lang.Cloneable, Extensible, IntentAttachPoint, PolicySetAttachPoint
All Known Subinterfaces:
RuntimeComponent, ScopedRuntimeComponent
All Known Implementing Classes:
ComponentImpl, RuntimeComponentImpl

public interface Component
extends Base, Extensible, PolicySetAttachPoint, java.lang.Cloneable

Represents a component. A component is a configured instance of an implementation.


Method Summary
 java.lang.Object clone()
          Returns a clone of the component.
 java.lang.Boolean getAutowire()
          Return the Boolean value of autowire
 ConstrainingType getConstrainingType()
          Returns a constraining type defining the shape of the component.
 Implementation getImplementation()
          Returns the component implementation.
 java.lang.String getName()
          Returns the name of the component.
 java.util.List<ComponentProperty> getProperties()
          Returns a list of properties for the component.
 java.util.List<ComponentReference> getReferences()
          Returns a list of references used by the component.
 java.util.List<ComponentService> getServices()
          Returns a list of services exposed by the component.
 java.lang.String getURI()
          Returns the URI of the component.
 void setAutowire(java.lang.Boolean autowire)
          Sets whether component references should be autowired.
 void setConstrainingType(ConstrainingType constrainingType)
          Sets a constraining type defining the shape of the component.
 void setImplementation(Implementation implementation)
          Sets the component implementation
 void setName(java.lang.String name)
          Sets the name of the component.
 void setURI(java.lang.String uri)
          Sets the URI of the component.
 
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

getURI

java.lang.String getURI()
Returns the URI of the component.

Returns:
the URI of the component

setURI

void setURI(java.lang.String uri)
Sets the URI of the component.

Parameters:
uri - the URI of the component

getName

java.lang.String getName()
Returns the name of the component.

Returns:
the name of the component

setName

void setName(java.lang.String name)
Sets the name of the component.

Parameters:
name - the name of the component

getImplementation

Implementation getImplementation()
Returns the component implementation.

Returns:
the component implementation

setImplementation

void setImplementation(Implementation implementation)
Sets the component implementation

Parameters:
implementation - the component implementation

getReferences

java.util.List<ComponentReference> getReferences()
Returns a list of references used by the component.

Returns:
a list of references used by the component

getServices

java.util.List<ComponentService> getServices()
Returns a list of services exposed by the component.

Returns:
a list of services exposed by the component

getProperties

java.util.List<ComponentProperty> getProperties()
Returns a list of properties for the component.

Returns:
a list of properties

getConstrainingType

ConstrainingType getConstrainingType()
Returns a constraining type defining the shape of the component.

Returns:
a constraining type

setConstrainingType

void setConstrainingType(ConstrainingType constrainingType)
Sets a constraining type defining the shape of the component.

Parameters:
constrainingType - the constraining type

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.

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