org.apache.tapestry.binding
Interface BindingFactory

All Known Implementing Classes:
AbstractBindingFactory, AssetBindingFactory, BeanBindingFactory, ComponentBindingFactory, HiveMindBindingFactory, ListenerBindingFactory, LiteralBindingFactory, MessageBindingFactory, OGNLBindingFactory, StateBindingFactory, TranslatorBindingFactory, ValidatorBindingFactory, ValidatorsBindingFactory

public interface BindingFactory

Creates a new instance of IBinding.

Since:
4.0
Author:
Howard Lewis Ship

Method Summary
 IBinding createBinding(IComponent root, java.lang.String bindingDescription, java.lang.String path, org.apache.hivemind.Location location)
          Creates a new binding instance.
 

Method Detail

createBinding

IBinding createBinding(IComponent root,
                       java.lang.String bindingDescription,
                       java.lang.String path,
                       org.apache.hivemind.Location location)
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.
description - The descriptionof the binding.
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.