Grails
  1. Grails
  2. GRAILS-8764

Registering aliases doesn't work in resources.groovy

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1-RC1
    • Component/s: Configuration
    • Labels:
      None

      Description

      You can only register aliases for beans registered in resources.groovy (or doWithSpring in a plugin); registering an alias for another bean in the context fails silently.

        Activity

        Hide
        Burt Beckwith added a comment -

        For clarification, this means you can do this now:

        beans = {
           springConfig.addAlias 'barService', 'fooService'
        }
        

        which will register the alias "barService" for an existing "fooService" bean.

        Show
        Burt Beckwith added a comment - For clarification, this means you can do this now: beans = { springConfig.addAlias 'barService', 'fooService' } which will register the alias "barService" for an existing "fooService" bean.

          People

          • Assignee:
            Burt Beckwith
            Reporter:
            Burt Beckwith
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development