-
Notifications
You must be signed in to change notification settings - Fork 0
Memory Beans
Fabio Simeoni edited this page Aug 19, 2014
·
5 revisions
Memory beans implement the Bean SPIs without an underlying persistent store.
For each
xxx.BeanSPI there is a corresponding Mxxx memory bean. For example,MIdentifiedis the memory bean forIdentified.BeanandMCodelistis the memory bean forCodelist.Bean.
Since they do not incur the setup and runtime penalties of persistence, we use them as "bean dummies" in:
- demo installations for increased performance.
- during development and testing for faster feedback.
Memory beans are not dummies, however. They continue to play a crucial rule even in combination with a persistent bean family. In particular we use them:
- in newly built entities.
- in changesets.
All the entities created through the data DSL are based on memory beans. As a result, memory beans are responsible for initialising entities and changesets. This includes validation and cloning, which is the basis for versioning.