7.16 LifecycleEvent Object
| Used on |
|
| Description | A lifecycle-event is caused when an entry in a space changes state - typically when the entry is written or taken.
The equivalent name in the GigaSpaces documentation is "Space Filter", or ISpaceFilter in the JavaDocs.
GigaSpaces implementation notes:
- All lifecycle-events for the containing space are collected into a single class, which by default is called <name>LifecycleHandler
- Does this *have* to map for one class for every JavaBean type.
- Where a JavaBean is specified for a 'before-write' or 'before-update' operation,
the method is called with JavaBean parameter and that instance can be updated.
This change will be automatically reflected into the entry in the space.
In other words, the generation adds a wrapper around the method so that the ISpaceFilterEntry signature method does not need to be used.
The GigaSpace use the term filter-event.
|
Contained Lists |
| 1 |
| Name | operations |
| Type | String |
| Description | This is the list of operations for which a lifecycle event should be called.
Multiple operations are possible; at least one operation must be specified.
The default lifecycle operation is after-write. Note than after-take is not allowed!
The current implementation does not support multiples (e.g. after-take-multiple).
|
| Unique | false |
|
|
Inherited properties |
| template |
(base property)
| |
| text |
(base property)
| |
| jwpattern |
(base property)
| |
|
7.16.1 Property 'description'
|
7.16.2 Property 'javaBean'
|
| Description | Defines the bean that this lifecycle-event will be called on.
In Giga-Spaces, if the java-bean is specified, the method will have this format:
public void <lifecycle-event-method>( final <JavaBean> entry ) {}
Otherwise it will have this format:
public void <lifecycle-event-method>( final ISpaceFilterEntry entry ){}
|
| Type | String |
7.16.3 Property 'name'
|
| Description | This is the name of the lifecycle-event, but it also used to name the method that is called when the event happens.
The name is required for an event and should give an indication of the semantics
(e.g. 'registerNewVehicle') rather than the mechanics (e.g. 'beforeWriteVehicle').
|
| Type | String |
| Required | true |
|