public class DummyTransformResolver extends TransformResolver
TransformResolver this resolver first returns a dummy context
object - unique marker - and then performs the transformation.EnhancedResolver.HintconfigurationDEFAULT_PRIORITY| Constructor and Description |
|---|
DummyTransformResolver(int priority,
String... matchNames) |
DummyTransformResolver(int priority,
Transformer transformer,
String... matchNames) |
| Modifier and Type | Method and Description |
|---|---|
Object |
resolve(Object contextObject,
String name,
ResolutionContext context)
Resolve the value from specified context object and name.
|
matches, matches, matchingName, performTransformation, setMatchingNames, transformgetCurrentLocale, initcreateHint, getPriority, toStringcheckNotInitialized, initclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetConfigurationKeys, initpublic DummyTransformResolver(int priority,
String... matchNames)
priority - matchNames - public DummyTransformResolver(int priority,
Transformer transformer,
String... matchNames)
priority - transformer - matchNames - 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 Resolverresolve in class TransformResolvercontextObject - The current context object (aka base object), may be
nullname - The name (the key or its part) is never nullcontext - The current resolution contextnullPlaceholder.NULLCopyright © 2017. All rights reserved.