Class GroovyBundleResourceConnector

  • All Implemented Interfaces:
    groovy.util.ResourceConnector

    public class GroovyBundleResourceConnector
    extends Object
    implements groovy.util.ResourceConnector
    This implementation of a Groovy ResourceConnector will load resources either from an OSGi bundle or from a source code folder if the corresponding header has been set in the bundle.
    • Constructor Detail

      • GroovyBundleResourceConnector

        public GroovyBundleResourceConnector​(org.osgi.framework.BundleContext bundleContext)
    • Method Detail

      • getResourceConnection

        public URLConnection getResourceConnection​(String resourcePath)
                                            throws groovy.util.ResourceException
        Specified by:
        getResourceConnection in interface groovy.util.ResourceConnector
        Throws:
        groovy.util.ResourceException