[jboss-jira] [JBoss JIRA] (AS7-2061) Add a non-recursive mechanism to OperationContext

Brian Stansberry (Created) (JIRA) jira-events at lists.jboss.org
Mon Oct 10 18:54:16 EDT 2011


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


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