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 {@link org.araneaframework.core.AraneaRuntimeException}will be thrown.
The component is initialized with an {@link 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@webmedia.ee)