public static interface ELContextBuilder.ELPropertyProvider
| Modifier and Type | Method and Description |
|---|---|
javax.el.ELContext |
build() |
ELContextBuilder.ELPropertyProvider |
withFunction(String prefix,
String localName,
Method method)
Adds a function which will be available in the EL.
|
ELContextBuilder.ELPropertyProvider |
withProperty(String name,
Object object)
Adds property to the EL.
|
javax.el.ELContext build()
ELContextBuilder.ELPropertyProvider withProperty(String name, Object object)
name - the name to use in the ELobject - the associated objectSeedException - if the name is blankELContextBuilder.ELPropertyProvider withFunction(String prefix, String localName, Method method)
.withFunction("maths", "max", Math.class.getMethod("max", double.class, double.class))
Provides the function max in the EL usable as follow:
"${maths:max(1,2)}"
prefix - the method prefixlocalName - the method namemethod - the actual method to invokeSeedException - if the localName is blankCopyright © 2013-2018–2019 SeedStack. All rights reserved.