Package io.quarkus.qute
Class ReflectionValueResolver
- java.lang.Object
-
- io.quarkus.qute.ReflectionValueResolver
-
- All Implemented Interfaces:
Resolver,ValueResolver,WithPriority
public class ReflectionValueResolver extends Object implements ValueResolver
This value resolver can be used to access public members of classes via reflection.
-
-
Field Summary
Fields Modifier and Type Field Description static StringGET_PREFIXstatic StringHAS_PREFIXstatic StringIS_PREFIX-
Fields inherited from interface io.quarkus.qute.WithPriority
DEFAULT_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description ReflectionValueResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanappliesTo(EvalContext context)voidclearCache()intgetPriority()CompletionStage<Object>resolve(EvalContext context)This method should return an instance ofResults#NotFoundif it's not possible to resolve the context.
-
-
-
Field Detail
-
GET_PREFIX
public static final String GET_PREFIX
- See Also:
- Constant Field Values
-
IS_PREFIX
public static final String IS_PREFIX
- See Also:
- Constant Field Values
-
HAS_PREFIX
public static final String HAS_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPriority
public int getPriority()
- Specified by:
getPriorityin interfaceWithPriority- Returns:
- the priority value
-
appliesTo
public boolean appliesTo(EvalContext context)
- Specified by:
appliesToin interfaceValueResolver- Returns:
trueif this resolver applies to the given context
-
resolve
public CompletionStage<Object> resolve(EvalContext context)
Description copied from interface:ResolverThis method should return an instance ofResults#NotFoundif it's not possible to resolve the context. Any other value is considered a valid result, includingnull.
-
clearCache
public void clearCache()
-
-