|
Tuscany Assembly Model | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tuscany.model.assembly.impl.AssemblyObjectImpl org.apache.tuscany.model.assembly.impl.ExtensibleImpl org.apache.tuscany.model.assembly.impl.ComponentTypeImpl
public class ComponentTypeImpl
An implementation of ComponentType.
Constructor Summary | |
---|---|
protected |
ComponentTypeImpl()
|
Method Summary | |
---|---|
boolean |
accept(AssemblyVisitor visitor)
Accept a visitor |
void |
freeze()
Freeze this model object preventing any additional changes. |
java.util.List<Property> |
getProperties()
Returns the list of properties that can be used to configure components with this component type. |
Property |
getProperty(java.lang.String name)
Returns the specified property |
Reference |
getReference(java.lang.String name)
Returns the specified reference. |
java.util.List<Reference> |
getReferences()
Returns the list of references this component type consumes. |
Service |
getService(java.lang.String name)
Returns the specfied service if exposed by this component type. |
java.util.List<Service> |
getServices()
Returns a list of services exposed by this component type. |
void |
initialize(AssemblyContext modelContext)
Initialize this model object. |
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.Extensible |
---|
getExtensibilityAttributes, getExtensibilityElements |
Constructor Detail |
---|
protected ComponentTypeImpl()
Method Detail |
---|
public java.util.List<Reference> getReferences()
ComponentType
getReferences
in interface ComponentType
public Reference getReference(java.lang.String name)
ComponentType
getReference
in interface ComponentType
name
- the name of the reference
public java.util.List<Service> getServices()
ComponentType
getServices
in interface ComponentType
public Service getService(java.lang.String name)
ComponentType
getService
in interface ComponentType
name
- the name of the service
public java.util.List<Property> getProperties()
ComponentType
getProperties
in interface ComponentType
public Property getProperty(java.lang.String name)
ComponentType
getProperty
in interface ComponentType
name
- the name of the property
public void initialize(AssemblyContext modelContext)
AssemblyObject
initialize
in interface AssemblyObject
initialize
in class ExtensibleImpl
modelContext
- context providing access to the environment in which this model is being usedpublic void freeze()
AssemblyObject
freeze
in interface AssemblyObject
freeze
in class ExtensibleImpl
public boolean accept(AssemblyVisitor visitor)
AssemblyObject
accept
in interface AssemblyObject
accept
in class ExtensibleImpl
visitor
- a visitor that is visiting the model
|
Tuscany Assembly Model | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |