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

Unable to get external properties from application context

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Complete
    • Affects Version/s: 1.1
    • Fix Version/s: 1.2
    • Component/s: IoC container
    • Labels:
      None

      Description

      Autowiring of external properties isn't working properly in Spring ActionScript 1.1. For a given XML application context:

      <?xml version="1.0"?>
      <objects>
      <property file="application.properties"/>
      </objects>

      and a given properties file:

        1. Properties ##
          a.b.c = 1
          c.b.a = 2
          b.c.a = 3

      Looping over the properties after the application context is loaded yields no results and I see errors if I try autowiring these properties in my application:

      [Autowired(externalProperty="a.b.c")]
      public var abc:*;

      However, in the XML application context, I can use these properties for values like so:

      <?xml version="1.0"?>
      <objects>
      <property file="application.properties"/>

      <object id="one" class="com.some.package.Thing">
      <property name="name" value="$

      {a.b.c}

      "/>
      </object>
      </objects>

      Very strange. It's as if it uses the properties internally during object definition creation, then discards them.

        Activity

        Hide
        TK Kocheran added a comment -

        Just attached a complete project which demonstrates the issue completely.

        Show
        TK Kocheran added a comment - Just attached a complete project which demonstrates the issue completely.

          People

          • Assignee:
            Christophe Herreman
            Reporter:
            TK Kocheran
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: