org.apache.tapestry.pageload
Class PropertyInitializer

java.lang.Object
  extended by org.apache.tapestry.pageload.PropertyInitializer
All Implemented Interfaces:
EventListener, PageDetachListener

public class PropertyInitializer
extends Object
implements PageDetachListener

Given a component, a property and a value, this object will reset the property to the value whenever the page (containing the component) is detached. This is related to support for IPropertySpecifications.

Since:
3.0
Version:
$Id: PropertyInitializer.java 243859 2004-03-30 18:27:36Z hlship $
Author:
Howard Lewis Ship

Constructor Summary
PropertyInitializer(IResourceResolver resolver, IComponent component, String propertyName, String expression, ILocation location)
           
 
Method Summary
 void pageDetached(PageEvent event)
          Invoked by the page from its IPage.detach() method.
 void prepareInvariant()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyInitializer

public PropertyInitializer(IResourceResolver resolver,
                           IComponent component,
                           String propertyName,
                           String expression,
                           ILocation location)
Method Detail

prepareInvariant

public void prepareInvariant()

pageDetached

public void pageDetached(PageEvent event)
Description copied from interface: PageDetachListener
Invoked by the page from its IPage.detach() method.

Specified by:
pageDetached in interface PageDetachListener