Class BundleFunctionLoader
java.lang.Object
org.jclouds.scriptbuilder.functionloader.osgi.BundleFunctionLoader
- All Implemented Interfaces:
FunctionLoader
A
FunctionLoader
which searches for functions in the Bundle
resources.-
Constructor Summary
ConstructorsConstructorDescriptionBundleFunctionLoader
(org.osgi.framework.BundleContext bundleContext) Constructor -
Method Summary
-
Constructor Details
-
BundleFunctionLoader
public BundleFunctionLoader(org.osgi.framework.BundleContext bundleContext) Constructor- Parameters:
bundleContext
-
-
-
Method Details
-
start
public void start()Starts the loader. Looks up forBundle
resources and registers itself in the service registry. It adds a property to the service which advertise all the functions found in the local resources. -
stop
public void stop()Unregisters itself from the service registry. -
loadFunction
Loads the function from theBundle
resources.- Specified by:
loadFunction
in interfaceFunctionLoader
- Parameters:
function
- The function name to load.family
- This operating system family of the function.- Returns:
- Throws:
FunctionNotFoundException
-