Tuscany Assembly Model

org.apache.tuscany.model.assembly
Interface ComponentType

All Superinterfaces:
AssemblyObject, Extensible
All Known Implementing Classes:
ComponentTypeImpl

public interface ComponentType
extends Extensible

A logical definition of a type of component separate from any specific implementation.


Method Summary
 List<Property> getProperties()
          Returns the list of properties that can be used to configure components with this component type.
 Property getProperty(String name)
          Returns the specified property
 Reference getReference(String name)
          Returns the specified reference.
 List<Reference> getReferences()
          Returns the list of references this component type consumes.
 Service getService(String name)
          Returns the specfied service if exposed by this component type.
 List<Service> getServices()
          Returns a list of services exposed by this component type.
 
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
 

Method Detail

getServices

List<Service> getServices()
Returns a list of services exposed by this component type.

Returns:
a list of services exposed by this component type

getService

Service getService(String name)
Returns the specfied service if exposed by this component type.

Parameters:
name - the name of the service
Returns:
the service identified by the supplied name, or null if there is no service with that name

getReferences

List<Reference> getReferences()
Returns the list of references this component type consumes.

Returns:
the list of references this component type consumes

getReference

Reference getReference(String name)
Returns the specified reference.

Parameters:
name - the name of the reference
Returns:
the reference identified by the supplied name, or null if there is no reference with that name

getProperties

List<Property> getProperties()
Returns the list of properties that can be used to configure components with this component type.

Returns:
the list of properties that can be used to configure components with this component type

getProperty

Property getProperty(String name)
Returns the specified property

Parameters:
name - the name of the property
Returns:
the property with the supplied name, or null if there is no property with that name

Tuscany Assembly Model

-