Announcement Announcement Module
No announcement yet.
Property class instance empty? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Property class instance empty?

    Hello all!

    I am using SAS 1.1. with Flex 4 (Hero SDK) and I am trying to make this piece of code work:

    	public class Resources
    		public var url_icons:String;
    		public var iblort:Iblort;
    All the time, I get the same error (well, the error is slightly different for the [Autowired(externalProperty="IconsUrl")] tag, but I believe the cause is the same) - Cannot resolve Placeholder "${IconsUrl}".

    I am starting to get nuts, because:

    a) The component scanner should work OK. The class iblort is autowired correctly

    b) The property ${IconsUrl} gets loaded correctly and works inside appContext.xml file !

    c) I downloaded the spring sources. I found, that the Properties object indeed gets filled with correct property data (lenght == 13). Bud somehow, when the class gets scanned, then the variable contains totally different Properties object (lenght == 0, id of the object is DIFFERENT than the one that gets created from the properties file).

    override public function scan(className:String):void {
    			_resolver = new PropertyPlaceholderResolver(); =;
    "" contains 0 properties (is not null, but empty).

    Am I doing something wrong? At which point is the Properties instance (that gets created from the external props file) assignet to ( ?

    Thanks for any response!
    Jan Pra×ma

  • #2

    Sorry for double post.

    The thread is the main one, please any admin or moderator - delete this one ...