public abstract class MapCustomKeyResolver extends AbstractResolver
BUILTIN_RESOLVERS_DEFAULT_PRIORITY, BUILTIN_TEMPLATE_LOCATORS_DEFAULT_PRIORITY, EXTENSION_RESOLVERS_DEFAULT_PRIORITY| Constructor and Description |
|---|
MapCustomKeyResolver(int priority) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.lang.Object |
convert(java.lang.String name) |
protected abstract boolean |
matches(java.lang.String name) |
java.lang.Object |
resolve(java.lang.Object contextObject,
java.lang.String name,
ResolutionContext context)
Resolve the value from specified context object and name.
|
getPriority, toStringgetConfigurationKeys, checkNotInitialized, initclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetConfigurationKeys, initpublic java.lang.Object resolve(java.lang.Object contextObject,
java.lang.String name,
ResolutionContext context)
Resolvernull 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
nullname - The name (the key or its part) is never nullcontext - The current resolution contextnullprotected abstract boolean matches(java.lang.String name)
name - true if this resolver matches (the lookup should be
performed) the given name, false otherwiseprotected abstract java.lang.Object convert(java.lang.String name)
name - Copyright © 2014. All Rights Reserved.