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