Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.aendvari.cerberus.component.descriptor
Class AssemblyDescriptor  view AssemblyDescriptor download AssemblyDescriptor.java

java.lang.Object
  extended bycom.aendvari.cerberus.component.descriptor.AssemblyDescriptor

public class AssemblyDescriptor
extends java.lang.Object

Provides a container for ComponentDefinitions and ComponentInstances.

The assembly descriptor is used during the building of component objects.


Field Summary
protected  java.util.HashMap components
          The components of this assembly descriptor.
protected  java.util.HashMap definitions
          The definitions of this assembly descriptor.
 
Constructor Summary
AssemblyDescriptor()
          Constructs an AssemblyDescriptor instance.
AssemblyDescriptor(AssemblyDescriptor assembly)
          Constructs an AssemblyDescriptor instance as a copy of the one supplied.
 
Method Summary
 void addComponent(ComponentInstance component)
          Adds a component to this assembly descriptor.
 void addDefinition(ComponentDefinition definition)
          Adds a component definition to this assembly descriptor.
 ComponentInstance getComponent(java.lang.String name)
          Returns the specified component.
 java.util.Collection getComponents()
          Returns the components of this assembly descriptor.
 ComponentDefinition getDefinition(java.lang.String name)
          Returns the specified component definition.
 java.util.Collection getDefinitions()
          Returns the component definitions in this assembly descriptor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

definitions

protected java.util.HashMap definitions
The definitions of this assembly descriptor.


components

protected java.util.HashMap components
The components of this assembly descriptor.

Constructor Detail

AssemblyDescriptor

public AssemblyDescriptor()
Constructs an AssemblyDescriptor instance.


AssemblyDescriptor

public AssemblyDescriptor(AssemblyDescriptor assembly)
Constructs an AssemblyDescriptor instance as a copy of the one supplied.

Method Detail

addDefinition

public void addDefinition(ComponentDefinition definition)
Adds a component definition to this assembly descriptor.


getDefinition

public ComponentDefinition getDefinition(java.lang.String name)
Returns the specified component definition.


getDefinitions

public java.util.Collection getDefinitions()
Returns the component definitions in this assembly descriptor.


addComponent

public void addComponent(ComponentInstance component)
Adds a component to this assembly descriptor.


getComponent

public ComponentInstance getComponent(java.lang.String name)
Returns the specified component.


getComponents

public java.util.Collection getComponents()
Returns the components of this assembly descriptor.