| org.araneaframework.Component
All known Subclasses: org.araneaframework.core.BaseComponent,
Component | public interface Component extends Serializable(Code) | | An entity with a licecycle (init , destroy ) and an Environment.
A components lifecycle is simple. It starts with init and ends with destroy.
- A component once inited, cannot be reinited.
- A component once destroyed, cannot be reinited.
- A component not inited, cannot be destroyed.
If a lifecycle contract is broken
org.araneaframework.core.AraneaRuntimeException will be thrown.
The component is initialized with an
org.araneaframework.Environment . The component's
Environment cannot be altered after the initialization process.
The Component follows the template pattern by defining _getComponent()
which returns the implementation.
author: "Toomas Römer" author: Jevgeni Kabanov (ekabanov at araneaframework dot org) |
Inner Class :public interface Interface extends Serializable | |
_getComponent | public Component.Interface _getComponent()(Code) | | The factory method returning the implementation of the Component.
the implementation of the Component. |
isAlive | public boolean isAlive()(Code) | | Returns true iff this component has been initialized and is not destroyed.
since: 1.1 |
|
|