org.zkoss.zkmax.bind.impl
Class BindXelFactoryEx

java.lang.Object
  extended by org.zkoss.xel.zel.ELFactory
      extended by org.zkoss.bind.xel.BindXelFactory
          extended by org.zkoss.zkmax.bind.impl.BindXelFactoryEx
All Implemented Interfaces:
ExpressionFactory

public class BindXelFactoryEx
extends BindXelFactory

An extension of BindXelFactory to do a lazy initiating EL expression construction.

Since:
8.0.0
Author:
jumperchen

Field Summary
 
Fields inherited from class org.zkoss.xel.zel.ELFactory
_expf
 
Fields inherited from interface org.zkoss.xel.ExpressionFactory
FEATURE_CLASS, FEATURE_FUNCTION
 
Constructor Summary
BindXelFactoryEx()
           
 
Method Summary
protected  ELContext newELContext(XelContext xelc)
           
protected  ExpressionFactory newExpressionFactory()
          Returns the EL expression factory.
 Expression parseExpression(XelContext xelc, java.lang.String expression, java.lang.Class expectedType)
          Prepares (a.k.a., compiles) an expression.
 
Methods inherited from class org.zkoss.xel.zel.ELFactory
evaluate, isSupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BindXelFactoryEx

public BindXelFactoryEx()
Method Detail

newExpressionFactory

protected ExpressionFactory newExpressionFactory()
Description copied from class: ELFactory
Returns the EL expression factory.

Default: Use org.zkoss.zel.impl.ExpressionFactoryImpl.

You might override it to use a different implementation.

Overrides:
newExpressionFactory in class BindXelFactory

parseExpression

public Expression parseExpression(XelContext xelc,
                                  java.lang.String expression,
                                  java.lang.Class expectedType)
                           throws XelException
Description copied from interface: ExpressionFactory
Prepares (a.k.a., compiles) an expression.

Specified by:
parseExpression in interface ExpressionFactory
Overrides:
parseExpression in class BindXelFactory
Parameters:
xelc - the context information to prepare the expression. It can be null, in which case no functions are supported for this invocation.
expression - the expression to be evaluated.
expectedType - the expected type of the result of the evaluation
Throws:
XelException

newELContext

protected ELContext newELContext(XelContext xelc)
Overrides:
newELContext in class BindXelFactory


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