Skip to content

Commit acfc95e

Browse files
committed
Merge pull request #796 from kazuki43zoo/SPR-13000
Modify to use the ConfigurableApplicationContext in reference document
2 parents 1722fa6 + 7926dea commit acfc95e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/asciidoc/core-beans.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3212,19 +3212,19 @@ singleton beans so that all resources are released. Of course, you must still co
32123212
and implement these destroy callbacks correctly.
32133213

32143214
To register a shutdown hook, you call the `registerShutdownHook()` method that is
3215-
declared on the `AbstractApplicationContext` class:
3215+
declared on the `ConfigurableApplicationContext` interface:
32163216

32173217
[source,java,indent=0]
32183218
[subs="verbatim,quotes"]
32193219
----
3220-
import org.springframework.context.support.AbstractApplicationContext;
3220+
import org.springframework.context.ConfigurableApplicationContext;
32213221
import org.springframework.context.support.ClassPathXmlApplicationContext;
32223222
32233223
public final class Boot {
32243224
32253225
public static void main(final String[] args) throws Exception {
32263226
3227-
AbstractApplicationContext ctx = new ClassPathXmlApplicationContext(
3227+
ConfigurableApplicationContext ctx = new ClassPathXmlApplicationContext(
32283228
new String []{"beans.xml"});
32293229
32303230
// add a shutdown hook for the above context...

0 commit comments

Comments
 (0)