Ce contenu n'est pas disponible dans la langue sélectionnée.
4.2. Javabean Cartridge Features
- Templating: This usually involves applying a template to the objects in the BeanContext.
- Validation: Business rules validation normally involves applying a rule to the objects in the BeanContext.
- Message splitting and routing: This works by generating split messages from the objects in the BeanContext, either by using the objects themselves and routing them, or by applying a template to them and routing the result of that operation to a new file.
- Persistence: These features depend on the Java binding functions for creating and populating the Java objects (such as entities) that are to be committed to the database. Data read from a database will normally be bound to the BeanContext.
- Message enrichment: Enrichment data (read, for example from a database) is normally bound to the BeanContext, from where it is available to all of Smooks' other features, including the Java binding functionality itself (making it available for expression-based bindings.) This allows you to enrich messages generated by Smooks.