[jboss-jira] [JBoss JIRA] (AS7-2061) Add a non-recursive mechanism to OperationContext
Brian Stansberry (Resolved) (JIRA)
jira-events at lists.jboss.org
Thu Oct 13 18:42:15 EDT 2011
[ https://issues.jboss.org/browse/AS7-2061?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Stansberry resolved AS7-2061.
-----------------------------------
Assignee: Brian Stansberry
Fix Version/s: 7.1.0.Beta1
Resolution: Done
> Add a non-recursive mechanism to OperationContext
> -------------------------------------------------
>
> Key: AS7-2061
> URL: https://issues.jboss.org/browse/AS7-2061
> Project: Application Server 7
> Issue Type: Task
> Components: Domain Management
> Affects Versions: 7.1.0.Alpha1
> Reporter: Brian Stansberry
> Assignee: Brian Stansberry
> Fix For: 7.1.0.Beta1
>
>
> Allow OperationStepHandlers to register a callback with the OperationContext when calling complete step, instead of waiting for a return value.
> public void completeStep(OperationRollbackHandler rollbackHandler);
> public interface OperationRollbackHandler {
> public void handleOperationRollback();
> }
> Potentially handleOperationRollback could take the OperationContext and ModelNode as params, although it's tempting to rely on the OSH to cache that. Presumably the typical implementation would be an anonymous inner class.
> The point of all this is the OperationContextImpl would track these registered OperationRollbackHandlers and invoke them at the appropriate point on the return path from executing all the steps in the operation. For each OSH that uses this API some recursion would be avoided.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list