org.araneaframework.core
Class BaseApplicationService.CompositeImpl
java.lang.Object
org.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
|
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 |
BaseApplicationService.CompositeImpl
protected BaseApplicationService.CompositeImpl()
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 componentcomp - 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