net.sf.tacos.annotations
Annotation Type Cached


@Target(value=METHOD)
@Retention(value=RUNTIME)
@Documented
public @interface Cached

Annotation used on any (non-abstract) page or component method that returns a value.

It caches the method result during the current request cycle, meaning that subsequent calls do not reevaluate the method's body.

Author:
Andreas Andreou

Optional Element Summary
 boolean resetAfterRewind
          Set to true if you want to reset the cached value when the rewind ends (and normal rendering starts).

This can be helpful when new values should be calculated for the new rendering (which perhaps didn't exist while rewinding).

 

resetAfterRewind

public abstract boolean resetAfterRewind
Set to true if you want to reset the cached value when the rewind ends (and normal rendering starts).

This can be helpful when new values should be calculated for the new rendering (which perhaps didn't exist while rewinding).

Returns:
Default:
false


Copyright ? 2007-2008 SourceForge.net. All Rights Reserved.