Tuscany Assembly Model

org.apache.tuscany.model.assembly.impl
Class ComponentImpl<I extends Implementation>

java.lang.Object
  extended by org.apache.tuscany.model.assembly.impl.AssemblyObjectImpl
      extended by org.apache.tuscany.model.assembly.impl.ExtensibleImpl
          extended by org.apache.tuscany.model.assembly.impl.PartImpl
              extended by org.apache.tuscany.model.assembly.impl.ComponentImpl<I>
All Implemented Interfaces:
AssemblyObject, Component<I>, ContextFactoryHolder, Extensible, Part
Direct Known Subclasses:
AtomicComponentImpl, ModuleComponentImpl

public abstract class ComponentImpl<I extends Implementation>
extends PartImpl
implements Component<I>

An implementation of Component.


Constructor Summary
ComponentImpl()
           
 
Method Summary
 boolean accept(AssemblyVisitor visitor)
          Accept a visitor
 void freeze()
          Freeze this model object preventing any additional changes.
 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 initialize(AssemblyContext modelContext)
          Initialize this model object.
 void setImplementation(I value)
          Sets the Implementation for this configured instance
 
Methods inherited from class org.apache.tuscany.model.assembly.impl.PartImpl
getComposite, getContextFactory, getName, setComposite, setContextFactory, setName
 
Methods inherited from class org.apache.tuscany.model.assembly.impl.ExtensibleImpl
getExtensibilityAttributes, getExtensibilityElements
 
Methods inherited from class org.apache.tuscany.model.assembly.impl.AssemblyObjectImpl
accept, checkInitialized, checkNotFrozen, freeze, initialize, isFrozen, isInitialized
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
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.ContextFactoryHolder
getContextFactory, setContextFactory
 

Constructor Detail

ComponentImpl

public ComponentImpl()
Method Detail

getImplementation

public I getImplementation()
Description copied from interface: Component
Returns the Implementation for this configured instance.

Specified by:
getImplementation in interface Component<I extends Implementation>
Returns:
the Implementation for this configured instance

setImplementation

public void setImplementation(I value)
Description copied from interface: Component
Sets the Implementation for this configured instance

Specified by:
setImplementation in interface Component<I extends Implementation>
Parameters:
value - the Implementation for this configured instance

getConfiguredServices

public List<ConfiguredService> getConfiguredServices()
Description copied from interface: Component
Returns the configured services for the configured instance.

Specified by:
getConfiguredServices in interface Component<I extends Implementation>
Returns:
the configured services for the configured instance

getConfiguredService

public ConfiguredService getConfiguredService(String name)
Description copied from interface: Component
Returns the ConfiguredService value for the specified property.

Specified by:
getConfiguredService in interface Component<I extends Implementation>
Parameters:
name - the name of the Property
Returns:
the configured service value for the named service

getConfiguredReferences

public List<ConfiguredReference> getConfiguredReferences()
Description copied from interface: Component
Returns the configured references for the configured instance.

Specified by:
getConfiguredReferences in interface Component<I extends Implementation>
Returns:
the configured references for the configured instance

getConfiguredReference

public ConfiguredReference getConfiguredReference(String name)
Description copied from interface: Component
Returns the ConfiguredReference value for the specified reference.

Specified by:
getConfiguredReference in interface Component<I extends Implementation>
Parameters:
name - the name of the Property
Returns:
the configured reference value for the named reference

getConfiguredProperties

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

Specified by:
getConfiguredProperties in interface Component<I extends Implementation>
Returns:
a list of ConfiguredProperty values

getConfiguredProperty

public ConfiguredProperty getConfiguredProperty(String name)
Description copied from interface: Component
Returns the ConfiguredProperty value for the specified property.

Specified by:
getConfiguredProperty in interface Component<I extends Implementation>
Parameters:
name - the name of the Property
Returns:
the configured property value for the named property

initialize

public void initialize(AssemblyContext modelContext)
Description copied from interface: AssemblyObject
Initialize this model object.

Specified by:
initialize in interface AssemblyObject
Overrides:
initialize in class ExtensibleImpl
Parameters:
modelContext - context providing access to the environment in which this model is being used

freeze

public void freeze()
Description copied from interface: AssemblyObject
Freeze this model object preventing any additional changes.

Specified by:
freeze in interface AssemblyObject
Overrides:
freeze in class ExtensibleImpl

accept

public boolean accept(AssemblyVisitor visitor)
Description copied from interface: AssemblyObject
Accept a visitor

Specified by:
accept in interface AssemblyObject
Overrides:
accept in class ExtensibleImpl
Parameters:
visitor - a visitor that is visiting the model
Returns:
true if processing is complete and the visitor should stop traversing the model

Tuscany Assembly Model

-