Package org.apache.unomi.groovy.actions
Class GroovyBundleResourceConnector
java.lang.Object
org.apache.unomi.groovy.actions.GroovyBundleResourceConnector
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionGroovyBundleResourceConnector
(org.osgi.framework.BundleContext bundleContext) -
Method Summary
-
Constructor Details
-
GroovyBundleResourceConnector
public GroovyBundleResourceConnector(org.osgi.framework.BundleContext bundleContext)
-
-
Method Details
-
getResourceConnection
public URLConnection getResourceConnection(String resourcePath) throws groovy.util.ResourceException - Specified by:
getResourceConnection
in interfacegroovy.util.ResourceConnector
- Throws:
groovy.util.ResourceException
-