12.12. @Initialize and @Uninitialize
Sometimes your component needs more involved configuration for which we need to write some "initialization" code. For this, Smooks provides the
@Initialize
annotation.
Likewise, there are times when you need to undo work performed during initialization when the associated Smooks instance is being discarded (garbage collected) e.g. to release some resources acquired during initialization. For this, Smooks provides the
@Uninitialize
annotation.