Results 1 to 5 of 5

Thread: Inject Application.application.parameters

  1. #1
    Join Date
    May 2006
    Posts
    10

    Default Inject Application.application.parameters

    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

  2. #2
    Join Date
    Dec 2008
    Location
    Brussels
    Posts
    407

    Default not yet

    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

  3. #3
    Join Date
    Oct 2008
    Location
    Belgium
    Posts
    160

    Default

    Do you need to inject the whole parameters object, or do you also want to inject properties of the parameters object?
    Christophe Herreman
    Spring ActionScript Founder
    http://www.herrodius.com

  4. #4
    Join Date
    Dec 2008
    Location
    Brussels
    Posts
    407

    Default

    Just to give my .2 cents. I'm pretty sure both ways would be valuable.

    So this:

    Code:
    <property value="${application.parameters}">
    as well as this:

    Code:
    <property value="${application.parameters[paramName]}">
    I could think of scenarios where both of them would come in handy...
    Last edited by 666shooter; Mar 19th, 2009 at 03:41 AM.

  5. #5
    Join Date
    May 2006
    Posts
    10

    Default

    both would be quite cool

Posting Permissions

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