Interface GraalPyContextBuilderFactory


@DefaultImplementation(io.micronaut.graal.graalpy.DefaultGraalPyContextBuilderFactory.class) public interface GraalPyContextBuilderFactory
Factory that allows customization of the creation of the Context used by the introduction advice GraalPyModule.

The default implementation returns GraalPyResources.contextBuilder() to create a context builder that is preconfigured with a virtual filesystem that provides access to resources configured with the GraalPy Maven plugin.

  • Method Summary

    Modifier and Type
    Method
    Description
    org.graalvm.polyglot.Context.Builder
    Create a context builder that will be used to create the new context.
  • Method Details

    • createBuilder

      org.graalvm.polyglot.Context.Builder createBuilder()
      Create a context builder that will be used to create the new context.
      Returns:
      context builder