Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## org.simpleframework.xml.core
Annotation Type Commit

    @Retention(value=RUNTIME)
    public @interface Commit

The `Commit` annotation is used to mark a method within a serializable object that requires a callback from the persister once the deserialization completes. The commit method is invoked by the `Persister` after all fields have been assigned and after the validation method has been invoked, if the object has a method marked with the `Validate` annotation.

Typically the commit method is used to complete deserialization by allowing the object to build further data structures from the fields that have been created from the deserialization process. The commit method must be a no argument method or a method that takes a single `Map` object argument, and may throw an exception, in which case the deserialization process terminates.

Author:
  Niall Gallagher
See Also:
  `Validate`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT