فهرست منبع

Deprecate EhCache2 support

Since EhCache 3 is fully JSR-107 compliant, we should remove EhCache2 support and provide JCache implementations

Closes gh-10362
Marcus Da Coregio 3 سال پیش
والد
کامیت
7fa39c8807

+ 2 - 0
acl/src/main/java/org/springframework/security/acls/domain/EhCacheBasedAclCache.java

@@ -37,7 +37,9 @@ import org.springframework.util.Assert;
  * {@link PermissionGrantingStrategy} and {@link AclAuthorizationStrategy} instances.
  *
  * @author Ben Alex
+ * @deprecated since 5.6. In favor of JCache based implementations
  */
+@Deprecated
 public class EhCacheBasedAclCache implements AclCache {
 
 	private final Ehcache cache;

+ 2 - 0
cas/src/main/java/org/springframework/security/cas/authentication/EhCacheBasedTicketCache.java

@@ -30,7 +30,9 @@ import org.springframework.util.Assert;
  * <a href="https://www.ehcache.org/">EHCACHE</a>.
  *
  * @author Ben Alex
+ * @deprecated since 5.6. In favor of JCache based implementations
  */
+@Deprecated
 public class EhCacheBasedTicketCache implements StatelessTicketCache, InitializingBean {
 
 	private static final Log logger = LogFactory.getLog(EhCacheBasedTicketCache.class);

+ 2 - 0
core/src/main/java/org/springframework/security/core/userdetails/cache/EhCacheBasedUserCache.java

@@ -32,7 +32,9 @@ import org.springframework.util.Assert;
  * <A HREF="https://www.ehcache.org/">EHCACHE</a>.
  *
  * @author Ben Alex
+ * @deprecated since 5.6. In favor of JCache based implementations
  */
+@Deprecated
 public class EhCacheBasedUserCache implements UserCache, InitializingBean {
 
 	private static final Log logger = LogFactory.getLog(EhCacheBasedUserCache.class);