|
|
|
@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Copyright 2002-2017 the original author or authors. |
|
|
|
* Copyright 2002-2018 the original author or authors. |
|
|
|
* |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
@ -28,9 +28,9 @@ import org.springframework.beans.factory.InitializingBean; |
|
|
|
import org.springframework.lang.Nullable; |
|
|
|
import org.springframework.lang.Nullable; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* {@link FactoryBean} for a JCache {@link javax.cache.CacheManager}, |
|
|
|
* {@link FactoryBean} for a JCache {@link CacheManager javax.cache.CacheManager}, |
|
|
|
* obtaining a pre-defined CacheManager by name through the standard |
|
|
|
* obtaining a pre-defined {@code CacheManager} by name through the standard |
|
|
|
* JCache {@link javax.cache.Caching} class. |
|
|
|
* JCache {@link Caching javax.cache.Caching} class. |
|
|
|
* |
|
|
|
* |
|
|
|
* <p>Note: This class has been updated for JCache 1.0, as of Spring 4.0. |
|
|
|
* <p>Note: This class has been updated for JCache 1.0, as of Spring 4.0. |
|
|
|
* |
|
|
|
* |
|
|
|
@ -56,16 +56,16 @@ public class JCacheManagerFactoryBean |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Specify the URI for the desired CacheManager. |
|
|
|
* Specify the URI for the desired {@code CacheManager}. |
|
|
|
* Default is {@code null} (i.e. JCache's default). |
|
|
|
* <p>Default is {@code null} (i.e. JCache's default). |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public void setCacheManagerUri(@Nullable URI cacheManagerUri) { |
|
|
|
public void setCacheManagerUri(@Nullable URI cacheManagerUri) { |
|
|
|
this.cacheManagerUri = cacheManagerUri; |
|
|
|
this.cacheManagerUri = cacheManagerUri; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Specify properties for the to-be-created CacheManager. |
|
|
|
* Specify properties for the to-be-created {@code CacheManager}. |
|
|
|
* Default is {@code null} (i.e. no special properties to apply). |
|
|
|
* <p>Default is {@code null} (i.e. no special properties to apply). |
|
|
|
* @see javax.cache.spi.CachingProvider#getCacheManager(URI, ClassLoader, Properties) |
|
|
|
* @see javax.cache.spi.CachingProvider#getCacheManager(URI, ClassLoader, Properties) |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public void setCacheManagerProperties(@Nullable Properties cacheManagerProperties) { |
|
|
|
public void setCacheManagerProperties(@Nullable Properties cacheManagerProperties) { |
|
|
|
|