Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-4351

Placeholders in context:component-scan's base-package attribute

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.1
    • Fix Version/s: 2.5.2
    • Component/s: Core
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      <context:component-scan base-package="${base.package}"/>

      The ${base.package} never get's resolved when ComponentScanBeanDefinitionParser pulls it from the attribute.

      I realize this is probably a much larger issue potentially involving certain attributes of many NamespaceHandlers. However, I thought I'd create an issue for it since I didn't see any other mention of how it can be difficult identifying which attributes of a NamespaceHandler can accept property placeholders and which cannot. Perhaps for the time being simply documenting in the XSD if the attribute can accept a property placeholder or not might help?

      Mike

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              juergen.hoeller Juergen Hoeller
              Reporter:
              youngm Mike Youngstrom
              Last updater:
              Spring Issuemaster
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 20 weeks, 3 days ago