Package org.silverpeas.core.process
Class AbstractProcess<C extends ProcessExecutionContext>
- java.lang.Object
-
- org.silverpeas.core.process.AbstractProcess<C>
-
- All Implemented Interfaces:
SilverpeasProcess<C>
- Direct Known Subclasses:
AbstractDataProcess
,AbstractFileProcess
public abstract class AbstractProcess<C extends ProcessExecutionContext> extends Object implements SilverpeasProcess<C>
The abstract root implementation ofSilverpeasProcess
interface whereprocess
andgetProcessType
methods are the only ones that are not implemented there.- Author:
- Yohann Chastagnier
-
-
Constructor Summary
Constructors Constructor Description AbstractProcess()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onFailure(ProcessErrorType errorType, Exception exception)
This method is called when exception is generated during a execution of Silverpeas Processes chain and if the process method of the task have been executed.void
onSuccessful()
Containing treatments which have to be done after a successful execution of process method and after successful validations.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.silverpeas.core.process.SilverpeasProcess
getProcessType, process
-
-
-
-
Method Detail
-
onSuccessful
public void onSuccessful() throws Exception
Description copied from interface:SilverpeasProcess
Containing treatments which have to be done after a successful execution of process method and after successful validations.- Specified by:
onSuccessful
in interfaceSilverpeasProcess<C extends ProcessExecutionContext>
- Throws:
Exception
-
onFailure
public void onFailure(ProcessErrorType errorType, Exception exception) throws Exception
Description copied from interface:SilverpeasProcess
This method is called when exception is generated during a execution of Silverpeas Processes chain and if the process method of the task have been executed.- Specified by:
onFailure
in interfaceSilverpeasProcess<C extends ProcessExecutionContext>
- Throws:
Exception
-
-