From c111ea89cf767ca83835f3cc1302c220343b0a35 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Mon, 15 Jun 2015 15:10:43 +0200 Subject: [PATCH] Add reference to AutoCloseable and Closeable Issue: SPR-13041 --- src/asciidoc/core-beans.adoc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/asciidoc/core-beans.adoc b/src/asciidoc/core-beans.adoc index 80e39cb25c..885f546cca 100644 --- a/src/asciidoc/core-beans.adoc +++ b/src/asciidoc/core-beans.adoc @@ -2957,9 +2957,10 @@ but does not couple the code to Spring. ==== The `destroy-method` attribute of a `` element can be assigned a special `(inferred)` value which instructs Spring to automatically detect a public `close` or -`shutdown` method on the specific bean class. This special `(inferred)` value can also be -set on the `default-destroy-method` attribute of a `` element to apply this -behavior to an entire set of beans (see +`shutdown` method on the specific bean class (any class that implements +`java.lang.AutoCloseable` or `java.io.Closeable` would therefore match). This special +`(inferred)` value can also be set on the `default-destroy-method` attribute of a +`` element to apply this behavior to an entire set of beans (see <>). Note that this is the default behavior with Java config. ==== -- GitLab