Skip to content

Commit e8d5d70

Browse files
committed
Make annotated command visible to native
- Use @Reflective with @command - This should automatically register reflection hints and make native work again - Relates #638
1 parent e721bc5 commit e8d5d70

File tree

1 file changed

+2
-0
lines changed
  • spring-shell-core/src/main/java/org/springframework/shell/command/annotation

1 file changed

+2
-0
lines changed

spring-shell-core/src/main/java/org/springframework/shell/command/annotation/Command.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import java.lang.annotation.RetentionPolicy;
2222
import java.lang.annotation.Target;
2323

24+
import org.springframework.aot.hint.annotation.Reflective;
2425
import org.springframework.shell.context.InteractionMode;
2526

2627
/**
@@ -31,6 +32,7 @@
3132
@Retention(RetentionPolicy.RUNTIME)
3233
@Target({ ElementType.TYPE, ElementType.METHOD })
3334
@Documented
35+
@Reflective
3436
public @interface Command {
3537

3638
/**

0 commit comments

Comments
 (0)