I can't seem to get stage autowiring working in my non-Flex application. How does Spring ActionScript get access to the stage in a non-Flex application? It appears that stage processing is simply not happening. I defined my own custom object selector and no objects are being passed to it, I am getting no output from my logging system:
My XML application context:
Code:<?xml version="1.0"?> <objects xmlns="http://www.springactionscript.org/schema/objects" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springactionscript.org/schema/objects http://www.springactionscript.org/schema/objects/spring-actionscript-objects-1.0.xsd"> <property file="application.properties"/> <!-- SPRING OBJECTS --> <object class="org.springextensions.actionscript.stage.DefaultAutowiringStageProcessor" id="autowiringStageProcessor"> <property name="objectSelector"> <object class="com.tkassembled.spring.CustomObjectSelector"/> </property> </object> </objects>
My object selector:
I never get the output from this code. I am sure that my application is loading the XML application context properly (i am getting Event.COMPLETE), I'm sure that my compiler is including the "Autowired" metadata tag, and I can't think of any other reason this might not be working. I'm trying to figure out how Spring ActionScript is getting access to the stage, but I can't see a way that it does it and that might be the problem. Can anyone help me out?Code:package com.tkassembled.spring.CustomObjectSelector { import com.carlcalderon.arthropod.Debug; import org.as3commons.reflect.Type; import org.springextensions.actionscript.stage.IObjectSelector; /** * @author TK Kocheran <a href="mailto:rfkrocktk@gmail.com"><rfkrocktk@gmail.com></a> */ public class CustomObjectSelector implements IObjectSelector { public function approve(object:Object):Boolean { Debug.log(Type.forInstance(object).fullName); return true; } } }


Reply With Quote
