org.apache.tapestry.binding
Class StateBinding

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

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

Field Summary
 
Fields inherited from class org.apache.tapestry.binding.AbstractBinding
_description
 
Constructor Summary
StateBinding(String description, ValueConverter valueConverter, org.apache.hivemind.Location location, ApplicationStateManager applicationStateManager, String objectName)
           
 
Method Summary
 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(String description,
                    ValueConverter valueConverter,
                    org.apache.hivemind.Location location,
                    ApplicationStateManager applicationStateManager,
                    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 Object getObject()
Description copied from interface: IBinding
Returns the value of this binding. This is the essential method.



Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.