Package fr.becpg.repo.formulation
Interface FormulationHandler<T>
- All Known Implementing Classes:
EntityCatalogFormulationHandler,FormulationBaseHandler,ScriptsFormulationHandler
public interface FormulationHandler<T>
A handler in the chain of responsibility scheme.
T Any type passed as context information.
- Version:
- $Id: $Id
- Author:
- matthieu
-
Method Summary
Modifier and TypeMethodDescriptionvoidonError.booleanImplements processing element logic in a chain.voidsetNextHandler(FormulationHandler<T> next) Sets next handler for the current one; called in post-processingvoidEntry point to the handler chain
-
Method Details
-
process
Implements processing element logic in a chain.- Parameters:
context- Any type passed as context information.- Returns:
true, if should call next handler- Throws:
FormulateException- if any.
-
setNextHandler
Sets next handler for the current one; called in post-processing- Parameters:
next- aFormulationHandlerobject.
-
start
Entry point to the handler chain- Parameters:
context- a T object.- Throws:
FormulateException
-
onError
onError.
- Parameters:
repositoryEntity- a T object
-