public class CombinedIndexResolver extends IndexResolver implements Validateable
IndexResolver
,
ListIndexResolver
,
ArrayIndexResolver
EnhancedResolver.Hint
Modifier and Type | Field and Description |
---|---|
static ConfigurationKey |
ENABLED_KEY
If set to
false the resolver is marked as invalid. |
configuration
DEFAULT_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, notAnIndex
createHint, getPriority, toString
checkNotInitialized, init
public 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)
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.
resolve
in interface Resolver
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
public void init(Configuration configuration)
AbstractConfigurationAware
super.init(config)
.init
in interface ConfigurationAware
init
in class AbstractConfigurationAware
public Set<ConfigurationKey> getConfigurationKeys()
getConfigurationKeys
in interface ConfigurationAware
public boolean isValid()
isValid
in interface Validateable
Copyright © 2017. All rights reserved.