Hello,
I need to inject "Application.application.parameters" into a object.
Is that possible?
If yes, how can I define it in my application-context.xml?
Thanks a lot
Hello,
I need to inject "Application.application.parameters" into a object.
Is that possible?
If yes, how can I define it in my application-context.xml?
Thanks a lot
currently these Application properties are supported by Spring Actionscript:
* - application.frameRate
* - application.historyManagementEnabled
* - application.pageTitle
* - application.resetHistory
* - application.scriptRecursionLimit
* - application.scriptTimeLimit
* - application.url
* - application.url.protocol
* - application.url.host
* - application.url.port
* - application.usePreloader
* - application.viewSourceURL
(These properties can be used as regular property placeholders in an application context or a properties file. e.g. ${application.url})
This was taken from the source in the trunk.
Still, this is bad news for you, since apparently the parameters aren't supported yet.
You can always add a feature request in Jira and hgave folks vote for it, that way it'll be implemented earlier.
cheers,
Roland
Do you need to inject the whole parameters object, or do you also want to inject properties of the parameters object?
Just to give my .2 cents. I'm pretty sure both ways would be valuable.
So this:
as well as this:Code:<property value="${application.parameters}">
I could think of scenarios where both of them would come in handy...Code:<property value="${application.parameters[paramName]}">
Last edited by 666shooter; Mar 19th, 2009 at 03:41 AM.
both would be quite cool![]()