Clover coverage report - Code Coverage for tapestry release 3.1-alpha-1
Coverage timestamp: Mon Feb 21 2005 09:16:14 EST
file stats: LOC: 54   Methods: 0
NCLOC: 9   Classes: 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
IPageRecorder.java - - - -
coverage
 1   
 // Copyright 2004, 2005 The Apache Software Foundation
 2   
 //
 3   
 // Licensed under the Apache License, Version 2.0 (the "License");
 4   
 // you may not use this file except in compliance with the License.
 5   
 // You may obtain a copy of the License at
 6   
 //
 7   
 //     http://www.apache.org/licenses/LICENSE-2.0
 8   
 //
 9   
 // Unless required by applicable law or agreed to in writing, software
 10   
 // distributed under the License is distributed on an "AS IS" BASIS,
 11   
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 12   
 // See the License for the specific language governing permissions and
 13   
 // limitations under the License.
 14   
 
 15   
 package org.apache.tapestry.engine;
 16   
 
 17   
 import java.util.Collection;
 18   
 
 19   
 import org.apache.tapestry.IPage;
 20   
 import org.apache.tapestry.IRequestCycle;
 21   
 import org.apache.tapestry.event.ChangeObserver;
 22   
 
 23   
 /**
 24   
  * Defines an object that can observe changes to properties of a page and its components, store the
 25   
  * state of the page between request cycles, and restore a page's state on a subsequent request
 26   
  * cycle.
 27   
  * <p>
 28   
  * Concrete implementations of this can store the changes in memory, as client-side cookies, in a
 29   
  * flat file, or in a database.
 30   
  * 
 31   
  * @author Howard Lewis Ship
 32   
  */
 33   
 
 34   
 public interface IPageRecorder extends ChangeObserver
 35   
 {
 36   
     /**
 37   
      * Persists all changes that have been accumulated. If the recorder saves change incrementally,
 38   
      * this should ensure that all changes have been persisted.
 39   
      * <p>
 40   
      * After commiting, a page recorder automatically locks itself.
 41   
      */
 42   
 
 43   
     public void commit();
 44   
 
 45   
     /**
 46   
      * Rolls back the page to the currently persisted state.
 47   
      * <p>
 48   
      * A page recorder can only rollback changes to properties which have changed at some point.
 49   
      * This can cause some minor problems, addressed by
 50   
      * {@link org.apache.tapestry.event.PageDetachListener#pageDetached(org.apache.tapestry.event.PageEvent)}.
 51   
      */
 52   
 
 53   
     public void rollback(IPage page);
 54   
 }