public abstract class MapCustomKeyResolver extends AbstractResolver
EnhancedResolver.Hint
configuration
DEFAULT_PRIORITY
Constructor and Description |
---|
MapCustomKeyResolver(int priority) |
Modifier and Type | Method and Description |
---|---|
protected abstract Object |
convert(String name) |
protected abstract boolean |
matches(String name) |
Object |
resolve(Object contextObject,
String name,
ResolutionContext context)
Resolve the value from specified context object and name.
|
createHint, getPriority, toString
checkNotInitialized, init, init
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getConfigurationKeys, init
public Object resolve(Object contextObject, String name, ResolutionContext context)
Resolver
null
in case of the resolver is not capable
of resolving it.
ResolutionContext
allows to register a callback to release all
the relevant resources after the resolved value is used.
contextObject
- The current context object (aka base object), may be
null
name
- The name (the key or its part) is never null
context
- The current resolution contextnull
Placeholder.NULL
protected abstract boolean matches(String name)
name
- true
if this resolver matches (the lookup should be
performed) the given name, false
otherwiseCopyright © 2017. All rights reserved.