Is their a way to set a constant with spring actionscript?
For instance, take this class
In code I could do following:Code:package org.as3commons.logging { import org.as3commons.logging.setup.target.TRACE_TARGET; import org.as3commons.logging.setup.SimpleTargetSetup; public const LOGGER_FACTORY: LoggerFactory = new LoggerFactory( new SimpleTargetSetup( TRACE_TARGET ) ); }
How can I configure this constant in Spring Actionscript? I'ts clear that defining an object like this won't workCode:LOGGER_FACTORY.setup = new SimpleTargetSetup(...)
<object id="loggerFactory" class="org.as3commons.logging.LOGGER_FACTORY"/>
btw, is it good practice to have constant values in a package without a class being defined (I wouldn't even know how to call these constants).


Reply With Quote
