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
 java.util.Collection<java.lang.String> getClassNames()
          Returns a readonly collection of the logic names of the class (never null).
 java.lang.Class<?> resolveClass(java.lang.String name)
          Resolves a class with the specified logic name, or null if not found.
 

Method Detail

getClassNames

java.util.Collection<java.lang.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

java.lang.Class<?> resolveClass(java.lang.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


Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo