-
Setting a constant
Is their a way to set a constant with spring actionscript?
For instance, take this class
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 ) );
}
In code I could do following:
Code:
LOGGER_FACTORY.setup = new SimpleTargetSetup(...)
How can I configure this constant in Spring Actionscript? I'ts clear that defining an object like this won't work
<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).