com.wideplay.warp.persist.spi
Interface PersistenceModuleVisitor


public interface PersistenceModuleVisitor

Used to visit a PersistenceModule and gather state that needs to be used with static methods. This hides the only static state we need (Servlet Filters) behind some OO goodness.


Method Summary
 void publishPersistenceService(PersistenceService persistenceService)
          Publishes the module's PersistenceService for consumption by Warp Persist's common infrastructure, notably PersistenceFilter.
 void publishWorkManager(WorkManager wm)
          Publishes the module's WorkManager for consumption by Warp Persist's common infrastructure, notably PersistenceFilter and PersistenceFilter.
 

Method Detail

publishWorkManager

void publishWorkManager(WorkManager wm)
Publishes the module's WorkManager for consumption by Warp Persist's common infrastructure, notably PersistenceFilter and PersistenceFilter.

Only use with UnitOfWork.REQUEST.

Parameters:
wm - the WorkManager to publish

publishPersistenceService

void publishPersistenceService(PersistenceService persistenceService)
Publishes the module's PersistenceService for consumption by Warp Persist's common infrastructure, notably PersistenceFilter.

Usually used with UnitOfWork.REQUEST, but technically it could make sense to use the PersistenceFilter with other units of work.

Parameters:
persistenceService - the PersistenceService to publish