Tuscany Assembly Model

org.apache.tuscany.model.assembly
Interface Component<I extends Implementation>

All Superinterfaces:
AssemblyObject, ContextFactoryHolder, Extensible, Part
All Known Subinterfaces:
AtomicComponent, CompositeComponent<I>, ModuleComponent
All Known Implementing Classes:
AtomicComponentImpl, ComponentImpl, ModuleComponentImpl

public interface Component<I extends Implementation>
extends Part

A component is a configured instance of a generic Implementation.


Method Summary
 List<ConfiguredProperty> getConfiguredProperties()
          Returns a list of configured property values for this configured instance.
 ConfiguredProperty getConfiguredProperty(String name)
          Returns the ConfiguredProperty value for the specified property.
 ConfiguredReference getConfiguredReference(String name)
          Returns the ConfiguredReference value for the specified reference.
 List<ConfiguredReference> getConfiguredReferences()
          Returns the configured references for the configured instance.
 ConfiguredService getConfiguredService(String name)
          Returns the ConfiguredService value for the specified property.
 List<ConfiguredService> getConfiguredServices()
          Returns the configured services for the configured instance.
 I getImplementation()
          Returns the Implementation for this configured instance.
 void setImplementation(I value)
          Sets the Implementation for this configured instance
 
Methods inherited from interface org.apache.tuscany.model.assembly.Part
getComposite, getName, setComposite, setName
 
Methods inherited from interface org.apache.tuscany.model.assembly.Extensible
getExtensibilityAttributes, getExtensibilityElements
 
Methods inherited from interface org.apache.tuscany.model.assembly.AssemblyObject
accept, freeze, initialize
 
Methods inherited from interface org.apache.tuscany.model.assembly.ContextFactoryHolder
getContextFactory, setContextFactory
 

Method Detail

getImplementation

I getImplementation()
Returns the Implementation for this configured instance.

Returns:
the Implementation for this configured instance

setImplementation

void setImplementation(I value)
Sets the Implementation for this configured instance

Parameters:
value - the Implementation for this configured instance

getConfiguredProperties

List<ConfiguredProperty> getConfiguredProperties()
Returns a list of configured property values for this configured instance. These values will be used to initialize the component when it is activated.

Returns:
a list of ConfiguredProperty values

getConfiguredProperty

ConfiguredProperty getConfiguredProperty(String name)
Returns the ConfiguredProperty value for the specified property.

Parameters:
name - the name of the Property
Returns:
the configured property value for the named property

getConfiguredReferences

List<ConfiguredReference> getConfiguredReferences()
Returns the configured references for the configured instance.

Returns:
the configured references for the configured instance

getConfiguredReference

ConfiguredReference getConfiguredReference(String name)
Returns the ConfiguredReference value for the specified reference.

Parameters:
name - the name of the Property
Returns:
the configured reference value for the named reference

getConfiguredServices

List<ConfiguredService> getConfiguredServices()
Returns the configured services for the configured instance.

Returns:
the configured services for the configured instance

getConfiguredService

ConfiguredService getConfiguredService(String name)
Returns the ConfiguredService value for the specified property.

Parameters:
name - the name of the Property
Returns:
the configured service value for the named service

Tuscany Assembly Model

-