Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convenient EhCache CacheManager setup in an @Bean method [SPR-12093] #16709

Closed
spring-projects-issues opened this issue Aug 18, 2014 · 1 comment
Closed
Assignees
Labels
type: enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Aug 18, 2014

Juergen Hoeller opened SPR-12093 and commented

Currently, there's a choice between Spring's EhCacheManagerFactoryBean (which is not a great fit for @Bean methods) and the native EhCache CacheManager bootstrapping options (which are a good match for Java-style setup but lack Spring-driven resource setup etc). Some convenience methods to close that gap would be nice.


Affects: 4.1 RC2

Referenced from: commits 0d0d713

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Aug 18, 2014

Juergen Hoeller commented

I've introduced an EhCacheManagerUtils class with several buildCacheManager methods, accepting Resource handles and/or a cache manager name. For advanced purposes, there's also a parseConfiguration(Resource) method which allows for further tweaking of the EhCache Configuration before building the CacheManager.

While being at it, and towards our 4.1 theme, I've also revised EhCacheCacheManager's setup logic to call EhCacheManagerUtils.buildCacheManager() now if not given a specific CacheManager, analogous to what JCacheCacheManager does already.

Juergen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement
Projects
None yet
Development

No branches or pull requests

2 participants