public enum DefaultEvaluationContextProvider extends Enum<DefaultEvaluationContextProvider> implements EvaluationContextProvider
EvaluationContextProvider
that always creates a new EvaluationContext
.Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
<T extends Parameters<T,? extends Parameter>> |
getEvaluationContext(T parameters,
Object[] parameterValues)
Returns an
EvaluationContext built using the given Parameters and parameter values. |
static DefaultEvaluationContextProvider |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DefaultEvaluationContextProvider[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DefaultEvaluationContextProvider INSTANCE
public static DefaultEvaluationContextProvider[] values()
for (DefaultEvaluationContextProvider c : DefaultEvaluationContextProvider.values()) System.out.println(c);
public static DefaultEvaluationContextProvider valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic <T extends Parameters<T,? extends Parameter>> EvaluationContext getEvaluationContext(T parameters, Object[] parameterValues)
EvaluationContextProvider
EvaluationContext
built using the given Parameters
and parameter values.getEvaluationContext
in interface EvaluationContextProvider
parameters
- the Parameters
instance obtained from the query method the context is built for.parameterValues
- the values for the parameters.Copyright © 2011-2014–2015 Pivotal Software, Inc.. All rights reserved.