org.apache.tapestry.binding
Class OGNLBindingFactory

java.lang.Object
  extended by org.apache.tapestry.binding.AbstractBindingFactory
      extended by org.apache.tapestry.binding.OGNLBindingFactory
All Implemented Interfaces:
BindingFactory

public class OGNLBindingFactory
extends AbstractBindingFactory

Implementation of BindingFactorythat creates ExpressionBindinginstances.

Since:
4.0
Author:
Howard Lewis Ship

Constructor Summary
OGNLBindingFactory()
           
 
Method Summary
 IBinding createBinding(IComponent root, java.lang.String description, java.lang.String path, org.apache.hivemind.Location location)
          Creates a new binding instance.
 void setExpressionCache(ExpressionCache expressionCache)
           
 void setExpressionEvaluator(ExpressionEvaluator expressionEvaluator)
           
 
Methods inherited from class org.apache.tapestry.binding.AbstractBindingFactory
getValueConverter, setValueConverter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OGNLBindingFactory

public OGNLBindingFactory()
Method Detail

createBinding

public IBinding createBinding(IComponent root,
                              java.lang.String description,
                              java.lang.String path,
                              org.apache.hivemind.Location location)
Description copied from interface: BindingFactory
Creates a new binding instance.

Parameters:
root - the component that is the source of properties or messages (or etc.). When the path is "evaluated", the root component provides a context.
path - The path used to get (or update) a value for the path. This may be an OGNL expression, a message key, a literal value, or otherwise defined by the type of binding. It is the value of the binding reference with the prefix (used to identify the factory) stripped off.
location - The location of the binding, used to report any errors related to the binding, or to the component parameter the binding is bound to.

setExpressionCache

public void setExpressionCache(ExpressionCache expressionCache)

setExpressionEvaluator

public void setExpressionEvaluator(ExpressionEvaluator expressionEvaluator)