public class CombinedIndexResolver extends IndexResolver implements Validateable
IndexResolver,
ListIndexResolver,
ArrayIndexResolverEnhancedResolver.Hint| Modifier and Type | Field and Description |
|---|---|
static ConfigurationKey |
ENABLED_KEY
If set to
false the resolver is marked as invalid. |
configurationDEFAULT_PRIORITY| Constructor and Description |
|---|
CombinedIndexResolver() |
CombinedIndexResolver(int priority) |
| Modifier and Type | Method and Description |
|---|---|
Set<ConfigurationKey> |
getConfigurationKeys() |
void |
init(Configuration configuration)
When overriding this method, always call
super.init(config). |
boolean |
isValid() |
Object |
resolve(Object contextObject,
String name,
ResolutionContext context)
Resolve the value from specified context object and name.
|
getIndexValue, getIndexValue, isAnIndex, notAnIndexcreateHint, getPriority, toStringcheckNotInitialized, initpublic static final ConfigurationKey ENABLED_KEY
false the resolver is marked as invalid.public CombinedIndexResolver()
public CombinedIndexResolver(int priority)
priority - public Object resolve(Object contextObject, 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.
resolve in interface ResolvercontextObject - The current context object (aka base object), may be
nullname - The name (the key or its part) is never nullcontext - The current resolution contextnullPlaceholder.NULLpublic void init(Configuration configuration)
AbstractConfigurationAwaresuper.init(config).init in interface ConfigurationAwareinit in class AbstractConfigurationAwarepublic Set<ConfigurationKey> getConfigurationKeys()
getConfigurationKeys in interface ConfigurationAwarepublic boolean isValid()
isValid in interface ValidateableCopyright © 2017. All rights reserved.