Class ServiceFunctionLoader
- java.lang.Object
-
- org.jclouds.scriptbuilder.functionloader.osgi.ServiceFunctionLoader
-
- All Implemented Interfaces:
FunctionLoader
public class ServiceFunctionLoader extends Object implements FunctionLoader
AFunctionLoaderimplementation 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 StringloadFunction(String function, OsFamily family)Looks up the service registry for an applicableFunctionLoaderand delegates to it.
-
-
-
Method Detail
-
loadFunction
public String loadFunction(String function, OsFamily family) throws FunctionNotFoundException
Looks up the service registry for an applicableFunctionLoaderand delegates to it.- Specified by:
loadFunctionin interfaceFunctionLoader- Parameters:
function- The function name to load.family- This operating system family of the function.- Returns:
- The function as
String - Throws:
FunctionNotFoundException
-
-