[jboss-jira] [JBoss JIRA] (AS7-6417) Deprecate OperationContext.Stage.IMMEDIATE
Brian Stansberry (JIRA)
jira-events at lists.jboss.org
Tue Jan 29 16:09:48 EST 2013
Brian Stansberry created AS7-6417:
-------------------------------------
Summary: Deprecate OperationContext.Stage.IMMEDIATE
Key: AS7-6417
URL: https://issues.jboss.org/browse/AS7-6417
Project: Application Server 7
Issue Type: Task
Components: Domain Management
Reporter: Brian Stansberry
Fix For: 7.2.0.Alpha1
Stage.IMMEDIATE is just a shorthand for the 'stage' and 'addFirst' params exposed by the various OperationContext.addStep methods, equivalent to 'the current stage' and 'true'. It produces more understandable code to use, e.g. Stage.MODEL and 'true' than to use a fictitious Stage like IMMEDIATE, so IMMEDIATE should be deprecated as API bloat.
One problem with IMMEDIATE is its name leads people to think the step is executed *immediately*, i.e. as part of the addStep call. This is incorrect but is a reasonable mistake to make.
--
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