Make annotated command visible to native

- Use @Reflective with @Command
- This should automatically register reflection hints
  and make native work again
- Relates #638
This commit is contained in:
Janne Valkealahti
2023-02-08 14:04:42 +00:00
parent e721bc57f3
commit e8d5d70792

View File

@@ -21,6 +21,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.shell.context.InteractionMode;
/**
@@ -31,6 +32,7 @@ import org.springframework.shell.context.InteractionMode;
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE, ElementType.METHOD })
@Documented
@Reflective
public @interface Command {
/**