@PreDestroy
The @PreDestroy
annotation is used for cleanup activities before the object is destroyed, like closing resources. The methods using this annotations will only be called when the Injector itself is destroyed using the destroy
method.
Last updated