public class DefaultPojoPathFunctionManager extends AbstractComponent implements PojoPathFunctionManager
PojoPathFunctionManager
.Modifier and Type | Field and Description |
---|---|
private Map<String,PojoPathFunction> |
functionMap |
Constructor and Description |
---|
DefaultPojoPathFunctionManager()
The constructor.
|
DefaultPojoPathFunctionManager(Map<String,PojoPathFunction> functionMap)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
PojoPathFunction |
getFunction(String functionName)
This method gets a
PojoPathFunction by its name. |
PojoPathFunction |
registerFunction(PojoPathFunction function,
String functionName)
This method registers the given
function for the given functionName so it is available via
getFunction(String) . |
doInitialize, doInitialized, getInitializationState, initialize
private final Map<String,PojoPathFunction> functionMap
public DefaultPojoPathFunctionManager()
public DefaultPojoPathFunctionManager(Map<String,PojoPathFunction> functionMap)
public PojoPathFunction getFunction(String functionName)
PojoPathFunctionManager
PojoPathFunction
by its name. Therefore the PojoPathFunction
instance
has to be registered somehow in the implementation of this
interface.getFunction
in interface PojoPathFunctionManager
functionName
- is the name of the requested PojoPathFunction
excluding the
prefix
.PojoPathFunction
or null
if no PojoPathFunction
is
registered for the given functionName
.public PojoPathFunction registerFunction(PojoPathFunction function, String functionName)
function
for the given functionName
so it is available via
getFunction(String)
.function
- is the PojoPathFunction
to register.functionName
- is the associated name
.PojoPathFunction
that was registered before for the given functionName
and has now been
replaced.getFunction(String)
Copyright © 2001–2016 mmm-Team. All rights reserved.