public enum BasicFunctionLoader extends Enum<BasicFunctionLoader> implements FunctionLoader
FunctionLoader
implementation which loads the target function from the classpath.Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
String |
loadFunction(String function,
OsFamily family)
Loads a function from the classpath using the current or the Thread Context Class Loader.
|
static BasicFunctionLoader |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BasicFunctionLoader[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BasicFunctionLoader INSTANCE
public static BasicFunctionLoader[] values()
for (BasicFunctionLoader c : BasicFunctionLoader.values()) System.out.println(c);
public static BasicFunctionLoader valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String loadFunction(String function, OsFamily family) throws FunctionNotFoundException
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.