Spring Framework
  1. Spring Framework
  2. SPR-8033

Allow other delimiters in profile XML attribute

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1 M1
    • Fix Version/s: 3.1 M2
    • Component/s: None
    • Labels:
      None
    • Last commented by a User:
      false

      Description

      Per comment at http://blog.springsource.com/2011/02/11/spring-framework-3-1-m1-released/comment-page-1/#comment-184455

      Allow comma, space and/or semicolon to delimit (currently only comma is allowed in Spring 3.1 M1)

        Activity

        Hide
        Chris Beams added a comment -

        Previously, only commas could delimit <beans profile="p1,p2"/>. Now, as
        with <bean alias="..."/>, the profile attribute allows for delimiting
        by comma, space and/or semicolon.

        BeanDefinitionParserDelegate.MULTI_VALUE_ATTRIBUTE_DELIMITERS has been
        added as a constant to reflect the fact this set of delimiters is used
        in multiple locations throughout the framework.
        BDPD.BEAN_NAME_DELIMITERS now refers to the above and has been has been
        preserved but deprecated for backward compat (though use outside the
        framework is unlikely).

        Show
        Chris Beams added a comment - Previously, only commas could delimit <beans profile="p1,p2"/>. Now, as with <bean alias="..."/>, the profile attribute allows for delimiting by comma, space and/or semicolon. BeanDefinitionParserDelegate.MULTI_VALUE_ATTRIBUTE_DELIMITERS has been added as a constant to reflect the fact this set of delimiters is used in multiple locations throughout the framework. BDPD.BEAN_NAME_DELIMITERS now refers to the above and has been has been preserved but deprecated for backward compat (though use outside the framework is unlikely).

          People

          • Assignee:
            Chris Beams
            Reporter:
            Chris Beams
            Last updater:
            Trevor Marshall
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Days since last comment:
              3 years, 6 weeks, 6 days ago