org.araneaframework.core
Class BaseApplicationService.CompositeImpl

java.lang.Object
  extended byorg.araneaframework.core.BaseApplicationService.CompositeImpl
All Implemented Interfaces:
Composite.Interface, Serializable
Enclosing class:
BaseApplicationService

protected class BaseApplicationService.CompositeImpl
extends Object
implements Composite.Interface

See Also:
Serialized Form

Constructor Summary
protected BaseApplicationService.CompositeImpl()
           
 
Method Summary
 void attach(Object key, Component comp)
          Attaches a component as a child of this component.
 Component detach(Object key)
          Detaches a child component with the specified key from this component.
 Map getChildren()
          Returns an unmodifiable map of all the child components.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseApplicationService.CompositeImpl

protected BaseApplicationService.CompositeImpl()
Method Detail

getChildren

public Map getChildren()
Description copied from interface: Composite.Interface
Returns an unmodifiable map of all the child components.

Specified by:
getChildren in interface Composite.Interface
Returns:
a map of child components

attach

public void attach(Object key,
                   Component comp)
Description copied from interface: Composite.Interface
Attaches a component as a child of this component. No initialization of the child takes place.

Specified by:
attach in interface Composite.Interface
Parameters:
key - of the added component
comp - the component being attached

detach

public Component detach(Object key)
Description copied from interface: Composite.Interface
Detaches a child component with the specified key from this component. Child will not be destroyed, just removed.

Specified by:
detach in interface Composite.Interface
Parameters:
key - of the child getting detached
Returns:
the removed component