Skip to content

Add RuntimeHint support #10

@maksymuimanov

Description

@maksymuimanov

Currently, spring-boot-python-executor relies on reflection, dynamic proxies, and resource loading (e.g. .py scripts). This works fine on a regular JVM but causes issues when running in Spring Native / GraalVM Native Image, since required classes and resources are not automatically discovered. Without explicit hints, native builds may fail at runtime with ClassNotFoundException, reflection errors, or missing resource exceptions.

  • Introduce a RuntimeHintsRegistrar for spring-boot-python-executor that registers:
  • Reflection hints for PythonExecutor, resolvers, and script-related classes.
  • Resource hints for bundled Python files (e.g. python/**).
  • Proxy hints for interfaces like PythonResolver where dynamic proxies may be created.

This ensures full compatibility with Spring AOT processing and native-image builds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions