[jboss-jira] [JBoss JIRA] (AS7-5059) Deprecate no-arg OperationContext.completeStep() variant

Brian Stansberry (JIRA) jira-events at lists.jboss.org
Tue Oct 9 09:04:03 EDT 2012


    [ https://issues.jboss.org/browse/AS7-5059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12724977#comment-12724977 ] 

Brian Stansberry commented on AS7-5059:
---------------------------------------

Two new methods were added to OperationContext to remove the need for calling the recursive completeStep():

1) OperationContext.completeStep(OperationContext.ResultHandler)

The result handler interface exposes 1 method:

void handleResult(ResultAction resultAction, OperationContext context, ModelNode operation);

A no-op implementation OperationContext.ResultHandler.NO_OP_RESULT_HANDLER is provided for use when the OSH doesn't care about the result.

2) OperationContext.stepCompleted() which is a shorter convenience method that call completeStep(OperationContext.ResultHandler.NO_OP_RESULT_HANDLER). It can be used when an OSH has no need to deal with the result and there is no benefit to a reader of the code in seeing that more explicitly spelled out via the longer form.
                
> Deprecate no-arg OperationContext.completeStep() variant
> --------------------------------------------------------
>
>                 Key: AS7-5059
>                 URL: https://issues.jboss.org/browse/AS7-5059
>             Project: Application Server 7
>          Issue Type: Task
>          Components: Domain Management
>            Reporter: Brian Stansberry
>            Assignee: Brian Stansberry
>             Fix For: 7.2.0.Alpha1
>
>
> Deprecate OperationContext.completeStep() in favor of OperationContext.completeStep(RollbackHandler)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list