Page 3 of 3 FirstFirst 123
Results 21 to 24 of 24

Thread: Prevent Stage autowiring on Modules

  1. #21

    Default

    I'm still unfortunately not seeing any autowiring on Modules as far as I know, and I'm using the latest trunk. Nothing inside of a Module is autowired, at least when using metadata.

    Also, I can't even get an IObjectSelector working in my application context. I have defined this bean:
    Code:
    <object id="flexStageObjectSelector" class="com.beetlemed.webapp.spring.AutowireSelector"/>
    ... and I can see that it is instantiated, but it doesn't get used at all. In my approve block, I'm intentionally throwing an error, and nothing happens, no RTE is thrown. Is this bit of functionality broken in the current trunk?

  2. #22

    Default

    Ok, I think I have it working now
    I had to do some compiler stuff to include the metadata, even though it's being included automagically by my application SWF, it's not being included in modules, though they use the same config file... weird.

    However, the other problem is still present. SA won't recognize my IObjectSelector in my application context.

  3. #23
    Join Date
    Dec 2008
    Location
    Brussels
    Posts
    406

    Default sometimes the bleeding edge bites you in the ass

    Hey there,

    I'm afraid using the trunk can sometimes be 'dangerous', I've just refactored quite a bit and the online documentation isn't valid anymore. (Mind you, it says version 0.8, so you can't blame me haha).
    The stagewiring logic has been refactored into a seperate interface called IStageProcessor, which will allow other types of stage processing besides autowiring. (I've just committed a localization package yesterday which can assign resources to stage components, for instance).
    The override has slightly changed for the autowiring at the moment, right now to override you'd need this markup:

    Code:
    <object id="flexStageObjectSelector" class="com.beetlemed.webapp.spring.AutowireSelector"/>
    
    <object id="flexStageObjectDefinitionResolver" class="org.springextensions.actionscript.ioc.wire.DefaultObjectDefinitionResolver"/>
    
    <object class="org.springextensions.actionscript.stage.DefaultAutowiringStageProcessor" id="defaultAutowiringStageProcessor">
      <property name="selector" ref="flexStageObjectSelector"/>
      <property name="objectDefinitionResolver" ref="flexStageObjectDefinitionResolver"/>
    </object>
    Mind you, this might remain subject to change

    let me know if this works for you.


    cheers,

    Roland

  4. #24

    Default

    Yeah, trust me, I know about the dangers of riding the bleeding edge, it is sharp after all, and covered in blood

    But thanks for pointing me in the right direction, I'll give that code a shot and get back to you on how/if it works for me.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •