Skip to content

Commit

Permalink
Merge pull request #27863 from izeye
Browse files Browse the repository at this point in the history
* pr/27863:
  Update copyright year of changed file
  Remove references to JCacheConfigurerSupport and CachingConfigurerSupport

Closes gh-27863
  • Loading branch information
snicoll committed Dec 29, 2021
2 parents 7ba089b + c204cc7 commit c09a674
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import org.junit.jupiter.api.Test;

import org.springframework.cache.CacheManager;
import org.springframework.cache.annotation.CachingConfigurerSupport;
import org.springframework.cache.annotation.CachingConfigurer;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cache.interceptor.CacheErrorHandler;
import org.springframework.cache.interceptor.CacheResolver;
Expand Down Expand Up @@ -143,7 +143,7 @@ public void bothSetOnlyResolverIsUsed() {

@Configuration
@EnableCaching(mode = AdviceMode.ASPECTJ)
static class EnableCachingConfig extends CachingConfigurerSupport {
static class EnableCachingConfig implements CachingConfigurer {

@Override
@Bean
Expand Down Expand Up @@ -220,7 +220,7 @@ public CacheManager cm2() {

@Configuration
@EnableCaching(mode = AdviceMode.ASPECTJ)
static class MultiCacheManagerConfigurer extends CachingConfigurerSupport {
static class MultiCacheManagerConfigurer implements CachingConfigurer {

@Bean
public CacheManager cm1() {
Expand All @@ -246,7 +246,7 @@ public KeyGenerator keyGenerator() {

@Configuration
@EnableCaching(mode = AdviceMode.ASPECTJ)
static class EmptyConfigSupportConfig extends CachingConfigurerSupport {
static class EmptyConfigSupportConfig implements CachingConfigurer {

@Bean
public CacheManager cm() {
Expand All @@ -258,7 +258,7 @@ public CacheManager cm() {

@Configuration
@EnableCaching(mode = AdviceMode.ASPECTJ)
static class FullCachingConfig extends CachingConfigurerSupport {
static class FullCachingConfig implements CachingConfigurer {

@Override
@Bean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package org.springframework.cache.aspectj;

import org.springframework.cache.CacheManager;
import org.springframework.cache.annotation.CachingConfigurerSupport;
import org.springframework.cache.annotation.CachingConfigurer;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cache.config.AnnotatedClassCacheableService;
import org.springframework.cache.config.CacheableService;
Expand Down Expand Up @@ -47,7 +47,7 @@ protected ConfigurableApplicationContext getApplicationContext() {

@Configuration
@EnableCaching(mode = AdviceMode.ASPECTJ)
static class EnableCachingConfig extends CachingConfigurerSupport {
static class EnableCachingConfig implements CachingConfigurer {

@Override
@Bean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public interface JCacheConfigurer extends CachingConfigurer {
* <pre class="code">
* &#064;Configuration
* &#064;EnableCaching
* public class AppConfig extends JCacheConfigurerSupport {
* public class AppConfig implements JCacheConfigurer {
* &#064;Bean // important!
* &#064;Override
* public CacheResolver exceptionCacheResolver() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public interface CachingConfigurer {
* <pre class="code">
* &#064;Configuration
* &#064;EnableCaching
* public class AppConfig extends CachingConfigurerSupport {
* public class AppConfig implements CachingConfigurer {
* &#064;Bean // important!
* &#064;Override
* public CacheManager cacheManager() {
Expand All @@ -77,7 +77,7 @@ default CacheManager cacheManager() {
* <pre class="code">
* &#064;Configuration
* &#064;EnableCaching
* public class AppConfig extends CachingConfigurerSupport {
* public class AppConfig implements CachingConfigurer {
* &#064;Bean // important!
* &#064;Override
* public CacheResolver cacheResolver() {
Expand All @@ -100,7 +100,7 @@ default CacheResolver cacheResolver() {
* <pre class="code">
* &#064;Configuration
* &#064;EnableCaching
* public class AppConfig extends CachingConfigurerSupport {
* public class AppConfig implements CachingConfigurer {
* &#064;Bean // important!
* &#064;Override
* public KeyGenerator keyGenerator() {
Expand All @@ -125,7 +125,7 @@ default KeyGenerator keyGenerator() {
* <pre class="code">
* &#064;Configuration
* &#064;EnableCaching
* public class AppConfig extends CachingConfigurerSupport {
* public class AppConfig implements CachingConfigurer {
* &#064;Bean // important!
* &#064;Override
* public CacheErrorHandler errorHandler() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2018 the original author or authors.
* Copyright 2002-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -103,7 +103,7 @@
* <pre class="code">
* &#064;Configuration
* &#064;EnableCaching
* public class AppConfig extends CachingConfigurerSupport {
* public class AppConfig implements CachingConfigurer {
*
* &#064;Bean
* public MyService myService() {
Expand Down

0 comments on commit c09a674

Please sign in to comment.