Browse Source

Register proper caching annotation runtime hints

See gh-28943
pull/28987/head
Sébastien Deleuze 2 years ago
parent
commit
491b7771d0
  1. 2
      spring-context/src/main/java/org/springframework/cache/annotation/CacheEvict.java
  2. 2
      spring-context/src/main/java/org/springframework/cache/annotation/CachePut.java
  3. 2
      spring-context/src/main/java/org/springframework/cache/annotation/Cacheable.java
  4. 3
      spring-context/src/main/java/org/springframework/cache/annotation/Caching.java

2
spring-context/src/main/java/org/springframework/cache/annotation/CacheEvict.java vendored

@ -23,6 +23,7 @@ import java.lang.annotation.Retention; @@ -23,6 +23,7 @@ import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.aot.hint.annotation.Reflective;
import org.springframework.core.annotation.AliasFor;
/**
@ -42,6 +43,7 @@ import org.springframework.core.annotation.AliasFor; @@ -42,6 +43,7 @@ import org.springframework.core.annotation.AliasFor;
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
@Reflective
public @interface CacheEvict {
/**

2
spring-context/src/main/java/org/springframework/cache/annotation/CachePut.java vendored

@ -23,6 +23,7 @@ import java.lang.annotation.Retention; @@ -23,6 +23,7 @@ import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.aot.hint.annotation.Reflective;
import org.springframework.core.annotation.AliasFor;
/**
@ -50,6 +51,7 @@ import org.springframework.core.annotation.AliasFor; @@ -50,6 +51,7 @@ import org.springframework.core.annotation.AliasFor;
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
@Reflective
public @interface CachePut {
/**

2
spring-context/src/main/java/org/springframework/cache/annotation/Cacheable.java vendored

@ -24,6 +24,7 @@ import java.lang.annotation.RetentionPolicy; @@ -24,6 +24,7 @@ import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.concurrent.Callable;
import org.springframework.aot.hint.annotation.Reflective;
import org.springframework.core.annotation.AliasFor;
/**
@ -58,6 +59,7 @@ import org.springframework.core.annotation.AliasFor; @@ -58,6 +59,7 @@ import org.springframework.core.annotation.AliasFor;
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
@Reflective
public @interface Cacheable {
/**

3
spring-context/src/main/java/org/springframework/cache/annotation/Caching.java vendored

@ -23,6 +23,8 @@ import java.lang.annotation.Retention; @@ -23,6 +23,8 @@ import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.aot.hint.annotation.Reflective;
/**
* Group annotation for multiple cache annotations (of different or the same type).
*
@ -37,6 +39,7 @@ import java.lang.annotation.Target; @@ -37,6 +39,7 @@ import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
@Reflective
public @interface Caching {
Cacheable[] cacheable() default {};

Loading…
Cancel
Save