[
https://issues.jboss.org/browse/AS7-5059?page=com.atlassian.jira.plugin.s...
]
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