net.sf.fikin.pojostate.decorate
Class SnapshotDecorator

java.lang.Object
  extended by net.sf.fikin.pojostate.decorate.AbstractDecorator
      extended by net.sf.fikin.pojostate.decorate.SnapshotDecorator
All Implemented Interfaces:
Decorator

public class SnapshotDecorator
extends AbstractDecorator

Implements object decoration with execute-once, read-many times Property value.

This is useful when POJO values will be read multiple times without the overhead of executing the actual methods each time. created on Mar 1, 2007

Since:
Version:
$Revision: 1.2 $
Author:
fiykov
See Also:
SnapshotState

Constructor Summary
SnapshotDecorator()
           
 
Method Summary
protected  StatePrototype newState()
          instantiate new class metadata object
 
Methods inherited from class net.sf.fikin.pojostate.decorate.AbstractDecorator
cacheState, createState, decorate, decorate, decorate, decorateObject, decorateObject, getCachedState, getCacheKey, getSelector, getStateFormat, setSelector, setStateFormat
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnapshotDecorator

public SnapshotDecorator()
Method Detail

newState

protected StatePrototype newState()
Description copied from class: AbstractDecorator
instantiate new class metadata object

Specified by:
newState in class AbstractDecorator
Returns:
instantiate new SnapshotState object


Copyright © 2005 Nikolay Fiykov. All Rights Reserved.