public class FunctionRegistry extends Object
Constructor and Description |
---|
FunctionRegistry() |
Modifier and Type | Method and Description |
---|---|
static FunctionRegistry |
get() |
static FunctionRegistry |
get(Context context) |
FunctionFactory |
get(String uri)
Lookup by URI
|
boolean |
isRegistered(String uri) |
Iterator<String> |
keys()
Iterate over URIs
|
void |
put(String uri,
Class<?> funcClass)
Insert a class that is the function implementation
|
void |
put(String uri,
FunctionFactory f)
Insert a function.
|
FunctionFactory |
remove(String uri)
Remove by URI
|
static void |
set(Context context,
FunctionRegistry reg) |
static FunctionRegistry |
standardRegistry() |
public static FunctionRegistry standardRegistry()
public static FunctionRegistry get()
public static FunctionRegistry get(Context context)
public static void set(Context context, FunctionRegistry reg)
public void put(String uri, FunctionFactory f)
uri
- f
- public void put(String uri, Class<?> funcClass)
uri
- String URIfuncClass
- Class for the function (new instance called).public FunctionFactory get(String uri)
public boolean isRegistered(String uri)
public FunctionFactory remove(String uri)
Licenced under the Apache License, Version 2.0