org.springframework.cache.CacheManager implementation
backed by a JCache javax.cache.CacheManager .Note
This class has been updated for JCache 1.0, as of Spring 4.0.
JCacheCache
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private CacheManager |
| Access | Constructor and Description |
|---|---|
| public | JCacheCacheManager()
Create a new |
| public | JCacheCacheManager(CacheManager
the backing JCache cacheManager)javax.cache.CacheManagerCreate a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | afterPropertiesSet()
Overrides org. Implements org. Invoked by the containing This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set. |
| public CacheManager | |
| protected Cache | getMissingCache(String
the name of the cache to retrieve name)Overrides org. Return a missing cache with the specified |
| public boolean | isAllowNullValues()
Return whether this cache manager accepts and converts |
| protected Collection | loadCaches()
Implements abstract org. Load the initial caches for this cache manager. |
| public void | setAllowNullValues(boolean allowNullValues)
Specify whether to accept and convert |
| public void |
| allowNullValues | back to summary |
|---|---|
| private boolean allowNullValues | |
| cacheManager | back to summary |
|---|---|
| private CacheManager cacheManager
| |
| JCacheCacheManager | back to summary |
|---|---|
| public JCacheCacheManager() Create a new The backing JCache | |
| JCacheCacheManager | back to summary |
|---|---|
| public JCacheCacheManager(CacheManager cacheManager) Create a new
| |
| afterPropertiesSet | back to summary |
|---|---|
| public void afterPropertiesSet() Overrides org. Implements org. Doc from org. Invoked by the containing This method allows the bean instance to perform validation of its overall configuration and final initialization when all bean properties have been set.
| |
| getCacheManager | back to summary |
|---|---|
| public CacheManager getCacheManager() Return the backing JCache
| |
| getMissingCache | back to summary |
|---|---|
| protected Cache getMissingCache(String name) Overrides org. Doc from org. Return a missing cache with the specified Caches may be lazily created at runtime if the native provider supports it.
If a lookup by name does not yield any result, an | |
| isAllowNullValues | back to summary |
|---|---|
| public boolean isAllowNullValues() Return whether this cache manager accepts and converts | |
| loadCaches | back to summary |
|---|---|
| protected Collection Implements abstract org. Doc from org. Load the initial caches for this cache manager. Called by
| |
| setAllowNullValues | back to summary |
|---|---|
| public void setAllowNullValues(boolean allowNullValues) Specify whether to accept and convert Default is "true", despite JSR-107 itself not supporting | |
| setCacheManager | back to summary |
|---|---|
| public void setCacheManager(CacheManager cacheManager) Set the backing JCache | |