Interface ELContextBuilder.ELPropertyProvider

  • Enclosing interface:
    ELContextBuilder

    public static interface ELContextBuilder.ELPropertyProvider
    Grammar to add properties and methods to an ELContext.
    • Method Detail

      • build

        javax.el.ELContext build()
        Returns:
        the context used by the service.
      • withFunction

        ELContextBuilder.ELPropertyProvider withFunction​(String prefix,
                                                         String localName,
                                                         Method method)
        Adds a function which will be available in the EL. For instance: .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)}"
        Parameters:
        prefix - the method prefix
        localName - the method name
        method - the actual method to invoke
        Returns:
        ELPropertyProvider
        Throws:
        SeedException - if the localName is blank