Helper class to make it possible to access OSGi bundle resources from the JavaScript engine

Constructors

Methods

  • Load a resource from an OSGi bundle

    Parameters

    • bundle: Bundle

      the bundle to load the resource from

    • path: string

      the path to the resource in the bundle

    • optional: boolean

      if false an error message will be logged if the resource is not found, otherwise null will be returned

    Returns string

    a String containing the content of the resource if it was found, null otherwise

    Throws

    RenderException