Annotation Type PreDestroy


@Retention(CLASS) @Target(METHOD) public @interface PreDestroy

Called when the server stops, after it has finished the requests in flight and before the database closes.

The method takes no arguments. Beans are destroyed in the reverse of the order they were built, so a bean's dependencies are still alive when its method runs.