org.apache.tapestry.binding
Class StateBinding

java.lang.Object
  extended byorg.apache.tapestry.binding.AbstractBinding
      extended byorg.apache.tapestry.binding.StateBinding
All Implemented Interfaces:
IBinding, org.apache.hivemind.Locatable

public class StateBinding
extends AbstractBinding

Binding used to efficiently query whether an application state object (visit, global and friends) exists without actually creating it (or creating a session).

Since:
4.0
Author:
Howard M. Lewis Ship

Constructor Summary
StateBinding(java.lang.String description, ValueConverter valueConverter, org.apache.hivemind.Location location, ApplicationStateManager applicationStateManager, java.lang.String objectName)
           
 
Method Summary
 java.lang.Object getObject()
          Returns the value of this binding.
 boolean isInvariant()
          Returns false; these ASO objects can be created at any time.
 
Methods inherited from class org.apache.tapestry.binding.AbstractBinding
createReadOnlyBindingException, extendDescription, getComponent, getDescription, getLocation, getObject, getValueConverter, setObject, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StateBinding

public StateBinding(java.lang.String description,
                    ValueConverter valueConverter,
                    org.apache.hivemind.Location location,
                    ApplicationStateManager applicationStateManager,
                    java.lang.String objectName)
Method Detail

isInvariant

public boolean isInvariant()
Returns false; these ASO objects can be created at any time.

Specified by:
isInvariant in interface IBinding
Overrides:
isInvariant in class AbstractBinding

getObject

public java.lang.Object getObject()
Description copied from interface: IBinding
Returns the value of this binding. This is the essential method.