Class ServiceFunctionLoader
- java.lang.Object
-
- org.jclouds.scriptbuilder.functionloader.osgi.ServiceFunctionLoader
-
- All Implemented Interfaces:
FunctionLoader
public class ServiceFunctionLoader extends Object implements FunctionLoader
AFunctionLoader
implementation which delegates loading to the OSGi service registry.
-
-
Constructor Summary
Constructors Constructor Description ServiceFunctionLoader(org.osgi.framework.BundleContext bundleContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
loadFunction(String function, OsFamily family)
Looks up the service registry for an applicableFunctionLoader
and delegates to it.
-
-
-
Method Detail
-
loadFunction
public String loadFunction(String function, OsFamily family) throws FunctionNotFoundException
Looks up the service registry for an applicableFunctionLoader
and delegates to it.- Specified by:
loadFunction
in interfaceFunctionLoader
- Parameters:
function
- The function name to load.family
- This operating system family of the function.- Returns:
- The function as
String
- Throws:
FunctionNotFoundException
-
-