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
|
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 FunctionLoader
function
- The function name to load.family
- This operating system family of the function.FunctionNotFoundException
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.