public class BundleFunctionLoader extends Object implements FunctionLoader
FunctionLoader which searches for functions in the Bundle resources.| Constructor and Description |
|---|
BundleFunctionLoader(org.osgi.framework.BundleContext bundleContext)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
loadFunction(String function,
OsFamily family)
Loads the function from the
Bundle resources. |
void |
start()
Starts the loader.
|
void |
stop()
Unregisters itself from the service registry.
|
public BundleFunctionLoader(org.osgi.framework.BundleContext bundleContext)
bundleContext - public void start()
Bundle 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.public void stop()
public String loadFunction(String function, OsFamily family) throws FunctionNotFoundException
Bundle resources.loadFunction in interface FunctionLoaderfunction - The function name to load.family - This operating system family of the function.FunctionNotFoundExceptionCopyright © 2009–2021 The Apache Software Foundation. All rights reserved.