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:
@@ -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 {
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user