Package org.apache.unomi.groovy.actions
Class GroovyBundleResourceConnector
- java.lang.Object
-
- org.apache.unomi.groovy.actions.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 Summary
Constructors Constructor Description GroovyBundleResourceConnector(org.osgi.framework.BundleContext bundleContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URLConnection
getResourceConnection(String resourcePath)
-
-
-
Method Detail
-
getResourceConnection
public URLConnection getResourceConnection(String resourcePath) throws groovy.util.ResourceException
- Specified by:
getResourceConnection
in interfacegroovy.util.ResourceConnector
- Throws:
groovy.util.ResourceException
-
-