[jboss-jira] [JBoss JIRA] (AS7-4058) Investigate use of OperationContext.completeStep() from within

Kabir Khan (JIRA) jira-events at lists.jboss.org
Tue Mar 6 12:27:36 EST 2012


Kabir Khan created AS7-4058:
-------------------------------

             Summary: Investigate use of OperationContext.completeStep() from within 
                 Key: AS7-4058
                 URL: https://issues.jboss.org/browse/AS7-4058
             Project: Application Server 7
          Issue Type: Feature Request
            Reporter: Kabir Khan


The lines are highlighted in https://github.com/jbossas/jboss-as/pull/1709/files
HandlerDisable and HandlerEnable do things like

   public void execute(OperationContext context, ModelNode operation) {
        if (context.isNormalServer()) {
            context.addStep(new OperationStepHandler() {
                    if (controller != null) {
                        controller.addListener(new AbstractServiceListener<Object>() {
                            public void listenerAdded(ServiceController<?> serviceController) {
                                serviceController.setMode(ServiceController.Mode.NEVER);
                            }

                            @Override
                            public void transition(ServiceController<?> serviceController, ServiceController.Transition transition) {
                                if (transition == ServiceController.Transition.STOPPING_to_DOWN) {
                                    context.completeStep(); <<<<
                                }
                            }
                        });
                    } else {
                        context.completeStep();
                    }
                }
            }, OperationContext.Stage.RUNTIME);
        }
        context.completeStep();
    }



--
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