org.silverpeas.viewer
Class AbstractViewerService.ViewerProcess<RETURN_VALUE extends Serializable>
java.lang.Object
org.silverpeas.viewer.AbstractViewerService.ViewerProcess<RETURN_VALUE>
- Type Parameters:
RETURN_VALUE
- the type of the value returned by the viewer treatment.
- Enclosing class:
- AbstractViewerService
protected final class AbstractViewerService.ViewerProcess<RETURN_VALUE extends Serializable>
- extends Object
This class handles the execution of a AbstractViewerService.ViewerTreatment
.
It provides the centralization of caching synchronization.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractViewerService.ViewerProcess
protected AbstractViewerService.ViewerProcess(String processName,
AbstractViewerService.ViewerTreatment<RETURN_VALUE> viewerTreatment)
- Default constructor.
- Parameters:
processName
- viewerTreatment
-
execute
public RETURN_VALUE execute(ViewerContext viewerContext)
- This method calls the execute method of a
AbstractViewerService.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.
Copyright © 2016 Silverpeas. All Rights Reserved.