Skip to content

Commit

Permalink
Make @ModelAttribute and @InitBinder reflective
Browse files Browse the repository at this point in the history
  • Loading branch information
sdeleuze committed Dec 11, 2022
1 parent 403778c commit 2323944
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Expand Up @@ -22,6 +22,8 @@
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.springframework.aot.hint.annotation.Reflective;

/**
* Annotation that identifies methods that initialize the
* {@link org.springframework.web.bind.WebDataBinder} which
Expand All @@ -47,6 +49,7 @@
* or {@link java.util.Locale}, allowing to register context-specific editors.
*
* @author Juergen Hoeller
* @author Sebastien Deleuze
* @since 2.5
* @see ControllerAdvice
* @see org.springframework.web.bind.WebDataBinder
Expand All @@ -55,6 +58,7 @@
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Reflective
public @interface InitBinder {

/**
Expand Down
Expand Up @@ -22,6 +22,7 @@
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.springframework.aot.hint.annotation.Reflective;
import org.springframework.core.annotation.AliasFor;
import org.springframework.ui.Model;

Expand Down Expand Up @@ -60,12 +61,14 @@
*
* @author Juergen Hoeller
* @author Rossen Stoyanchev
* @author Sebastien Deleuze
* @since 2.5
* @see ControllerAdvice
*/
@Target({ElementType.PARAMETER, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Reflective
public @interface ModelAttribute {

/**
Expand Down

0 comments on commit 2323944

Please sign in to comment.