org.apache.tuscany.sca.assembly
Interface Component

All Superinterfaces:
Base, IntentAttachPoint, PolicySetAttachPoint, Visitable
All Known Subinterfaces:
RuntimeComponent

public interface Component
extends Base, IntentAttachPoint, PolicySetAttachPoint, Visitable

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

Version:
$Rev: 537391 $ $Date: 2007-05-12 12:42:45 +0100 (Sat, 12 May 2007) $

Method Summary
 java.lang.Object clone()
          Returns a clone of the component.
 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.
 boolean isAutowire()
          Returns true if the component references should be autowired.
 void setAutowire(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
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

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

isAutowire

boolean isAutowire()
Returns true if the component references should be autowired.

Returns:
whether component references should be autowired.

setAutowire

void setAutowire(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