net.sf.composite
Interface RegistryComposite

All Superinterfaces:
Composite

public interface RegistryComposite
extends Composite

A composite which keeps its components in a registry such that each component has a unique String name. This allows for components in the registry to be retrieved and replaced by name.

Since:
Mar 14, 2005
Author:
Matt Sgarlata

Method Summary
 java.util.Map getComponents()
          Retrieves a mapping of component names to component objects.
 void setComponents(java.util.Map components)
          Sets a mapping of component names to component objects.
 

Method Detail

getComponents

java.util.Map getComponents()
Retrieves a mapping of component names to component objects. This mapping should have String keys but may have as values any Object. It is not required that the values in this map implement the Component interface, though implementing the Component interface is encouraged for clarity's sake.

Returns:
a mapping of component names to component objects

setComponents

void setComponents(java.util.Map components)
Sets a mapping of component names to component objects. This mapping should have String keys but may have as values any Object. It is not required that the values in this map implement the Component interface, though implementing the Component interface is encouraged for clarity's sake.

Parameters:
components - a mapping of component names to component objects


Copyright © 2005-2008.