Package org.zkoss.xel

Interface FunctionMapperExt

All Known Implementing Classes:
DualFunctionMapper, SimpleMapper, TaglibMapper

public interface FunctionMapperExt
Implemented with FunctionMapper to resolve the class. The default evaluator ignores this interface. It is used only with special evaluators such as MVEL and OGNL. In other words, you rarely need to implement this interface.
Since:
6.0.0
Author:
tomyeh
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a readonly collection of the logic names of the class (never null).
    Resolves a class with the specified logic name, or null if not found.
  • Method Details

    • getClassNames

      Collection<String> getClassNames()
      Returns a readonly collection of the logic names of the class (never null). Note: it is the name to resolve class, not the real class name. In other words, it is the logical name maintained by this function mapper.
    • resolveClass

      Class<?> resolveClass(String name) throws XelException
      Resolves a class with the specified logic name, or null if not found.

      Note: not all EL evaluator support resolveClass(java.lang.String). JSP 2.0/2.1 EL-based expression factories don't support this method. You can check ExpressionFactory.isSupported(int) for this support.

      Returns:
      the class of the specified logic name.
      Throws:
      XelException