public class ServiceFunctionLoader extends Object implements FunctionLoader
FunctionLoader
implementation which delegates loading to the OSGi service registry.Constructor and Description |
---|
ServiceFunctionLoader(org.osgi.framework.BundleContext bundleContext) |
Modifier and Type | Method and Description |
---|---|
String |
loadFunction(String function,
OsFamily family)
Looks up the service registry for an applicable
FunctionLoader and delegates to it. |
public ServiceFunctionLoader(org.osgi.framework.BundleContext bundleContext)
public String loadFunction(String function, OsFamily family) throws FunctionNotFoundException
FunctionLoader
and delegates to it.loadFunction
in interface FunctionLoader
function
- The function name to load.family
- This operating system family of the function.String
FunctionNotFoundException
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.