Class AbstractViewerService.ViewerProcess<R extends Serializable>
- java.lang.Object
-
- org.silverpeas.core.viewer.service.AbstractViewerService.ViewerProcess<R>
-
- Type Parameters:
R
- the type of the value returned by the viewer treatment.
- Enclosing class:
- AbstractViewerService
protected final class AbstractViewerService.ViewerProcess<R extends Serializable> extends Object
This class handles the execution of aAbstractViewerService.ViewerTreatment
. It provides the centralization of caching synchronization.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ViewerProcess(String processName, AbstractViewerService.ViewerTreatment<R> viewerTreatment)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description R
execute(ViewerContext viewerContext)
This method calls the execute method of aAbstractViewerService.ViewerTreatment
instance.
-
-
-
Constructor Detail
-
ViewerProcess
protected ViewerProcess(String processName, AbstractViewerService.ViewerTreatment<R> viewerTreatment)
Default constructor.- Parameters:
processName
-viewerTreatment
-
-
-
Method Detail
-
execute
public R execute(ViewerContext viewerContext)
This method calls the execute method of aAbstractViewerService.ViewerTreatment
instance. One of the aim of this mechanism is to centralize tha management of caching.- Returns:
- the value computed by the specified viewer treatment.
-
-