DATACOUCH-52 - Shut down CouchbaseClient bean when the context is destroyed.

The shutdown method will be called on the bean when the context is closed to
make sure that "no thread is left behind" running.
This commit is contained in:
Michael Nitschinger
2014-01-23 14:47:28 +01:00
parent 5414ee556b
commit 7dd2a5b7b2

View File

@@ -48,7 +48,7 @@ public abstract class AbstractCouchbaseConfiguration {
* *
* @throws Exception on Bean construction failure. * @throws Exception on Bean construction failure.
*/ */
@Bean @Bean(destroyMethod = "shutdown")
public abstract CouchbaseClient couchbaseClient() throws Exception; public abstract CouchbaseClient couchbaseClient() throws Exception;
/** /**