Skip to content

Commit

Permalink
Make annotated command visible to native
Browse files Browse the repository at this point in the history
- Use @Reflective with @command
- This should automatically register reflection hints
  and make native work again
- Relates #638
  • Loading branch information
jvalkeal committed Feb 8, 2023
1 parent e721bc5 commit e8d5d70
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.springframework.aot.hint.annotation.Reflective;
import org.springframework.shell.context.InteractionMode;

/**
Expand All @@ -31,6 +32,7 @@
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE, ElementType.METHOD })
@Documented
@Reflective
public @interface Command {

/**
Expand Down

0 comments on commit e8d5d70

Please sign in to comment.