public abstract class AbstractResolver extends AbstractConfigurationAware implements EnhancedResolver
EnhancedResolver.HintconfigurationBUILTIN_RESOLVERS_DEFAULT_PRIORITY, BUILTIN_TEMPLATE_LOCATORS_DEFAULT_PRIORITY, EXTENSION_RESOLVERS_DEFAULT_PRIORITY| Constructor and Description |
|---|
AbstractResolver(int priority) |
| Modifier and Type | Method and Description |
|---|---|
EnhancedResolver.Hint |
createHint(Object contextObject,
String name,
ResolutionContext context)
This method may only be called right after the
Resolver.resolve(Object, String, ResolutionContext) of the same resolver
returns a non-null value. |
int |
getPriority() |
String |
toString() |
getConfigurationKeys, checkNotInitialized, init, initclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetConfigurationKeys, initpublic int getPriority()
getPriority in interface WithPrioritypublic EnhancedResolver.Hint createHint(Object contextObject, String name, ResolutionContext context)
EnhancedResolverResolver.resolve(Object, String, ResolutionContext) of the same resolver
returns a non-null value. The parameters must be the same.
The created hint is currently only used to skip the resolver chain for
the first part of a key of a variable tag, i.e. foo for
{{foo}} or {{foo.bar}}.
This method must not return null.
createHint in interface EnhancedResolverHints.INAPPLICABLE_HINTCopyright © 2015. All rights reserved.