Apache Tuscany SCA Kernel Sub-Project

org.apache.tuscany.spi.model
Class CompositeComponentType<S extends ServiceDefinition,R extends ReferenceDefinition,P extends Property<?>>

java.lang.Object
  extended by org.apache.tuscany.spi.model.ModelObject
      extended by org.apache.tuscany.spi.model.ComponentType<S,R,P>
          extended by org.apache.tuscany.spi.model.CompositeComponentType<S,R,P>

public class CompositeComponentType<S extends ServiceDefinition,R extends ReferenceDefinition,P extends Property<?>>
extends ComponentType<S,R,P>

A specialization of component type for composite components.

Version:
$Rev: 443176 $ $Date: 2006-09-13 17:54:50 -0700 (Wed, 13 Sep 2006) $

Constructor Summary
CompositeComponentType()
           
 
Method Summary
 void add(ComponentDefinition<? extends Implementation<?>> componentDefinition)
           
 void add(Include include)
           
 Map<String,ComponentDefinition<? extends Implementation<?>>> getComponents()
          Get all components including the ones are from included composites
 Map<String,ComponentDefinition<? extends Implementation<?>>> getDeclaredComponents()
          Get declared components in this composite type, included doesn't count
 Map<String,P> getDeclaredProperties()
          Get declared properties in this composite type, included doesn't count
 Map<String,R> getDeclaredReferences()
          Get declared references in this composite type, included doesn't count
 Map<String,S> getDeclaredServices()
          Get declared services in this composite type, included doesn't count
 Map<String,Include> getIncludes()
           
 String getName()
           
 Map<String,P> getProperties()
          Returns a live Map of properties that can be used to configure the implementation.
 Map<String,R> getReferences()
          Returns a live Map of references to services consumed by the implementation.
 Map<String,S> getServices()
          Returns a live Map of the services provided by the implementation.
 void setName(String name)
           
 
Methods inherited from class org.apache.tuscany.spi.model.ComponentType
add, add, add, getInitLevel, isEagerInit, setEagerInit, setInitLevel
 
Methods inherited from class org.apache.tuscany.spi.model.ModelObject
getExtensions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeComponentType

public CompositeComponentType()
Method Detail

getName

public String getName()

setName

public void setName(String name)

getProperties

public Map<String,P> getProperties()
Description copied from class: ComponentType
Returns a live Map of properties that can be used to configure the implementation.

Overrides:
getProperties in class ComponentType<S extends ServiceDefinition,R extends ReferenceDefinition,P extends Property<?>>
Returns:
a live Map of properties that can be used to configure the implementation

getReferences

public Map<String,R> getReferences()
Description copied from class: ComponentType
Returns a live Map of references to services consumed by the implementation.

Overrides:
getReferences in class ComponentType<S extends ServiceDefinition,R extends ReferenceDefinition,P extends Property<?>>
Returns:
a live Map of references to services consumed by the implementation

getServices

public Map<String,S> getServices()
Description copied from class: ComponentType
Returns a live Map of the services provided by the implementation.

Overrides:
getServices in class ComponentType<S extends ServiceDefinition,R extends ReferenceDefinition,P extends Property<?>>
Returns:
a live Map of the services provided by the implementation

getComponents

public Map<String,ComponentDefinition<? extends Implementation<?>>> getComponents()
Get all components including the ones are from included composites

Returns:

getDeclaredProperties

public Map<String,P> getDeclaredProperties()
Get declared properties in this composite type, included doesn't count

Returns:

getDeclaredReferences

public Map<String,R> getDeclaredReferences()
Get declared references in this composite type, included doesn't count

Returns:

getDeclaredServices

public Map<String,S> getDeclaredServices()
Get declared services in this composite type, included doesn't count

Returns:

getDeclaredComponents

public Map<String,ComponentDefinition<? extends Implementation<?>>> getDeclaredComponents()
Get declared components in this composite type, included doesn't count

Returns:

add

public void add(ComponentDefinition<? extends Implementation<?>> componentDefinition)

getIncludes

public Map<String,Include> getIncludes()

add

public void add(Include include)

Apache Tuscany SCA Kernel Sub-Project

-