SX Spring Actionscript
  1. SX Spring Actionscript
  2. SESPRINGACTIONSCRIPTAS-88

Placeholders in multiple external property files not being parsed

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Complete
    • Affects Version/s: 0.8.1
    • Fix Version/s: 1.0
    • Component/s: IoC container
    • Labels:
      None
    • Environment:
      Windows 7, Eclipse 3.4, Flex 3.4.

      Description

      In my main applicationContext.xml I have:

      <objects>
      <property file="applicationContext.properties"/>
      <import file="servicesContext.xml"/>
      ...
      </objects>

      and in servicesContext.xml:

      <objects>
      <property file="servicesContext.properties"/>
      ...
      </objects>

      This setup throws the IllegalArgumentError at line #173 of PropertyPlaceholderResolver. In some cases, the Properties object shows SAS successfully parsing the value from applicationContext.properties while failing to do so for servicesContext.properties, and other times, it's vice versa.

      The documentation (http://www.springactionscript.org/docs/reference/html/container-documentation.html#external_property_files) implies that one could have multiple property files spread across multiple context XMLs like my example from above. However, it doesn't look like that's the case since once I consolidated all the placeholder values into one prop file, SAS was then able to parse all of the properties without issue.

      Not sure if this was a bug or a simple feature/improvement request or perhaps even a known limitation that should be more clearly stated in the current documentation. Thanks and keep up the good work.

        Activity

        Hide
        Christophe Herreman added a comment -

        This should be fixed in SVN. We have added a "order" property that can be set on the PPC to give a hint to the container in what order the PPC should be processed.

        Show
        Christophe Herreman added a comment - This should be fixed in SVN. We have added a "order" property that can be set on the PPC to give a hint to the container in what order the PPC should be processed.

          People

          • Assignee:
            Christophe Herreman
            Reporter:
            T. Le
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: