public class PropertyFunctionRegistry extends Object
Constructor and Description |
---|
PropertyFunctionRegistry() |
Modifier and Type | Method and Description |
---|---|
static PropertyFunctionRegistry |
chooseRegistry(Context context)
Get the PropertyFunctionRegistry, defaulting to the global one
|
static PropertyFunctionRegistry |
get() |
static PropertyFunctionRegistry |
get(Context context) |
PropertyFunctionFactory |
get(String uri)
Lookup by URI
|
boolean |
isRegistered(String uri) |
Iterator<String> |
keys()
Iterate over URIs
|
boolean |
manages(String uri) |
void |
put(String uri,
Class<?> extClass)
Insert an PropertyFunction class.
|
void |
put(String uri,
PropertyFunctionFactory factory)
Insert an PropertyFunction factory.
|
PropertyFunctionFactory |
remove(String uri)
Remove by URI
|
static void |
set(Context context,
PropertyFunctionRegistry reg) |
static PropertyFunctionRegistry |
standardRegistry() |
public static PropertyFunctionRegistry standardRegistry()
public static PropertyFunctionRegistry get(Context context)
public static PropertyFunctionRegistry chooseRegistry(Context context)
public static void set(Context context, PropertyFunctionRegistry reg)
public static PropertyFunctionRegistry get()
public void put(String uri, PropertyFunctionFactory factory)
uri
- String URI for the PropertyFunctionfactory
- Factory to make PropertyFunction instancespublic void put(String uri, Class<?> extClass)
uri
- String URI for the PropertyFunctionextClass
- The Java classpublic boolean manages(String uri)
public PropertyFunctionFactory get(String uri)
public boolean isRegistered(String uri)
public PropertyFunctionFactory remove(String uri)
Licenced under the Apache License, Version 2.0