com.cc.framework.ui.model.value
Class DeferredEnvironment

java.lang.Object
  extended bycom.cc.framework.ui.model.value.DeferredEnvironment

public class DeferredEnvironment
extends java.lang.Object

Environment for executing expressions

Version:
$Revision: 1.11 $
Author:
Harald Schulz

Nested Class Summary
protected static class DeferredEnvironment.BeanVariableResolver
          Variable Resolver
protected static class DeferredEnvironment.ELFunctionMapper
          Function mapper
protected static class DeferredEnvironment.ELLogger
          Logger
 
Field Summary
static java.lang.String BEAN_NAME
          The name that can be used in deferred expressions to access the (row-) bean
private  javax.servlet.jsp.el.FunctionMapper functionMapper
          Function mapper for custom functions
private static org.apache.commons.logging.Log log
          Logging instance
private  org.apache.commons.el.Logger logger
          Logger
private  javax.servlet.jsp.PageContext pageContext
          The Page Context of the current JSP page
private  DeferredEnvironment.BeanVariableResolver variableResolver
          The variable resolver that gives access to the (row-)bean
 
Constructor Summary
DeferredEnvironment(javax.servlet.jsp.PageContext pageContext)
          Constructor
DeferredEnvironment(javax.servlet.jsp.PageContext pageContext, java.lang.Object bean)
          Constructor
 
Method Summary
protected  java.lang.Object evaluate(java.lang.String expression)
          Evaluates the given expression or expression string (multiple expressions in one string).
 java.lang.Object getBean()
          Retrieves the (row-) bean
 javax.servlet.jsp.PageContext getPageContext()
           
 void setBean(java.lang.Object bean)
          Sets the (row-) bean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BEAN_NAME

public static final java.lang.String BEAN_NAME
The name that can be used in deferred expressions to access the (row-) bean

See Also:
Constant Field Values

log

private static org.apache.commons.logging.Log log
Logging instance


pageContext

private javax.servlet.jsp.PageContext pageContext
The Page Context of the current JSP page


variableResolver

private DeferredEnvironment.BeanVariableResolver variableResolver
The variable resolver that gives access to the (row-)bean


functionMapper

private javax.servlet.jsp.el.FunctionMapper functionMapper
Function mapper for custom functions


logger

private org.apache.commons.el.Logger logger
Logger

Constructor Detail

DeferredEnvironment

public DeferredEnvironment(javax.servlet.jsp.PageContext pageContext)
Constructor

Parameters:
pageContext - The Page Context of the current JSP page

DeferredEnvironment

public DeferredEnvironment(javax.servlet.jsp.PageContext pageContext,
                           java.lang.Object bean)
Constructor

Parameters:
pageContext - The Page Context of the current JSP page
bean - The (row-) bean
Method Detail

setBean

public void setBean(java.lang.Object bean)
Sets the (row-) bean

Parameters:
bean - the (row-) bean

getBean

public java.lang.Object getBean()
Retrieves the (row-) bean

Returns:
the (row-) bean

getPageContext

public javax.servlet.jsp.PageContext getPageContext()
Returns:
the pageContext

evaluate

protected java.lang.Object evaluate(java.lang.String expression)
Evaluates the given expression or expression string (multiple expressions in one string). The bean is made accessible under the identifier BEAN_NAME

Parameters:
expression - The Expression
Returns:
Returns the result


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.