org.pm4j.core.pm.impl
Class PmVisitorTouchAll

java.lang.Object
  extended by org.pm4j.core.pm.impl.PmVisitorAdapter
      extended by org.pm4j.core.pm.impl.PmVisitorTouchAll
All Implemented Interfaces:
PmVisitor

public class PmVisitorTouchAll
extends PmVisitorAdapter

A helper that may be used to prevent lazy load issues.

Calls all external getter methods within the PM tree.


Field Summary
static PmVisitorTouchAll DEFAULT_INSTANCE
          An instance that does not touch invisible items.
 
Constructor Summary
PmVisitorTouchAll()
           
PmVisitorTouchAll(boolean touchInvisibleItems)
           
 
Method Summary
protected  void onVisit(PmObject pm)
          Default call back for common PmObject related handling.
 void visit(PmAttr<?> attr)
           
 
Methods inherited from class org.pm4j.core.pm.impl.PmVisitorAdapter
onVisitPmTreeNode, visit, visit, visit, visit, visit, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_INSTANCE

public static final PmVisitorTouchAll DEFAULT_INSTANCE
An instance that does not touch invisible items.

Constructor Detail

PmVisitorTouchAll

public PmVisitorTouchAll()

PmVisitorTouchAll

public PmVisitorTouchAll(boolean touchInvisibleItems)
Method Detail

onVisit

protected void onVisit(PmObject pm)
Description copied from class: PmVisitorAdapter
Default call back for common PmObject related handling.

Overrides:
onVisit in class PmVisitorAdapter

visit

public void visit(PmAttr<?> attr)
Specified by:
visit in interface PmVisitor
Overrides:
visit in class PmVisitorAdapter