• Stephane Nicoll's avatar
    Expose caching-specific infrastructure · 1b3efd41
    Stephane Nicoll authored
    Expose the underlying cache infrastructure bean if Boot auto-configures
    it. This is the case for ehCache, hazelcast and JCache. This change has
    two side effects:
    
    1. It is now possible to customize the underlying cache infrastructure
    and let Boot only wrap it in the Spring's CacheManager abstraction. No
    customizations are applied if the caching-specific service is customized
    2. Such infrastructure is disposed when the application terminates as
    it is now defined as `@Bean` and both `close()` and `shutdown()` methods
    are invoked if present on the target type.
    
    While the latter can be troublesome, we feel that a particular cache
    instance is not meant to be shared and must be disposed when the
    application terminates.
    
    Closes gh-2848
    1b3efd41
Name
Last commit
Last update
docs Loading commit data...
eclipse Loading commit data...
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-autoconfigure Loading commit data...
spring-boot-cli Loading commit data...
spring-boot-dependencies Loading commit data...
spring-boot-deployment-tests Loading commit data...
spring-boot-docs Loading commit data...
spring-boot-full-build Loading commit data...
spring-boot-integration-tests Loading commit data...
spring-boot-parent Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-starters Loading commit data...
spring-boot-tools Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
pom.xml Loading commit data...