@Documented @Retention(value=RUNTIME) @Target(value=METHOD) public @interface OnSave
@OnSaveis used to mark a method of the service responsible for saving service's state to a permanent storage. The storage can be a database or any other persistent medium.
When used on a Vault's Asset the
@OnSave method will be called instead
of the Vault provided implementation.
The method is called when Baratine determines that change of service state had occurred and will time the @OnSave call to its internal checkpoint, i.e. the method may not be necesseraly called on every change, it may be called for accumulated change of state.
It is assumed that state changes on a call to any