Top Description Methods
javax.annotation

public @Interface PreDestroy

extends Annotation
Annotations
@Documented
@Retention:RUNTIME
@Target:METHOD
Imports
java.lang.annotation.*

The PreDestroy annotation is used on a method as a callback notification to signal that the instance is in the process of being removed by the container. The method annotated with PreDestroy is typically used to release resources that it has been holding. This annotation must be supported by all container-managed objects that support the use of the PostConstruct annotation except the Java EE application client. The method on which the PreDestroy annotation is applied must fulfill all of the following criteria:
Since
1.6, Common Annotations 1.0
See Also
javax.annotation.PostConstruct, javax.annotation.Resource

Method Summary

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString