[ 
https://issues.apache.org/jira/browse/CHAIN-112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16143133#comment-16143133
 ] 

Gary Gregory commented on CHAIN-112:
------------------------------------

Feel free to propose a patch but be aware that:
- Commons Chain has not seen any action in a long time
- We should never break binary compatibility outside of a major release.

Gary

> Add preProcess() and postProcess() apis to command interface
> ------------------------------------------------------------
>
>                 Key: CHAIN-112
>                 URL: https://issues.apache.org/jira/browse/CHAIN-112
>             Project: Commons Chain
>          Issue Type: Improvement
>          Components: API
>            Reporter: Nikhil Bhide
>            Priority: Minor
>
> Request to add preProcess and postProcess apis to command interface
> This would be useful as it would allow developers to break the logic as per 
> the single responsibility principle. 
> preProcess - to hold logic of initialization, few checks such as connection 
> is fine etc..
> execute - main action 
> postProcess - clean up logic, triggering events based on the outcome of 
> execute
> preProcess and postProcess can be done in execute api itself, but sometimes 
> its required to customize only some logic while desiring same action. In that 
> case preProcess() and postProcess() apis can be overriden by the class 
> implementing command interface or extending ChainBase classes



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to