|
Expresso 5-5-0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Lifecycle interface of an Expresso component. This should be implemented by any serious Expresso service that wishes to benefit from a component based architecture. Although there are other lifecycle events available in other interfaces, these are the basic lifecycle events that most components will utilize in one way or another.
| Method Summary | |
void |
configure(Configuration newConfig)
Configure the service. |
void |
destroy()
Called upon destruction of the service. |
void |
initialize()
Initialize the component, this is called before the component receives any configuration information. |
void |
reconfigure(Configuration newConfig)
Reconfigures the service during runtime without having to restart the container. |
| Method Detail |
public void initialize()
public void configure(Configuration newConfig)
throws ConfigurationException
newConfig - a read only dynabean containing all the needed configuration.
IllegalArgumentException - newConfig is null or the types in it are
not what is expected by the Component
ConfigurationException - if for some reason the Component cannot cope
with the configuration sent to it. If this exception is thrown then ZERO
reconfiguration takes place. Configure() must be an all or nothing 'transaction'
public void reconfigure(Configuration newConfig)
throws ConfigurationException
Reconfigures the service during runtime without having to restart the container.
Reconfigure is done this way vs. bean/property setters because sometimes components need special property setting orders and it is not easily possible to determine what order to set things in. This is the responsibility of the component
reConfigure() should be done in a transactional manner.... by that, we mean that if the reconfiguration fails, the component should revert to its previous state and continue operation
newConfig - a read only dynabean containing all the needed configuration.
IllegalArgumentException - newConfig is null or the types in it are
not what is expected by the Component
ConfigurationException - if for some reason the Component cannot cope
with the configuration sent to it. If this exception is thrown then ZERO
reconfiguration takes place. Configure() must be an all or nothing 'transaction'public void destroy()
|
Expresso 5-5-0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||