public final class ValidationElExtension extends Object implements ExpressionLanguageExtension
ExpressionLanguageExtension
which adds a
ValidatorElContext
to the ExpressionLanguageContext
as a variable named validator
.
The validator
variable is actually an alias which
creates a new ValidatorElContext
each time a
ExpressionLanguageContext
is configured. This is necessary
because the ValidatorElContext
needs to receive the current
MuleEvent
in its constructor.Constructor and Description |
---|
ValidationElExtension() |
Modifier and Type | Method and Description |
---|---|
void |
configureContext(ExpressionLanguageContext context)
Registers an alias for a new
ValidatorElContext
under the name validator |
public void configureContext(ExpressionLanguageContext context)
ValidatorElContext
under the name validator
configureContext
in interface ExpressionLanguageExtension
context
- a new ExpressionLanguageContext
which is being configuredCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.