Results 1 to 3 of 3

Thread: @ExternalValue resolved from Servlet Context

  1. #1
    Join Date
    Aug 2005
    Location
    Sussex, UK
    Posts
    92

    Default @ExternalValue resolved from Servlet Context

    Hi
    I was going to raise this as a comment on the JIRA http://jira.springframework.org/browse/SJC-170 but do not have the correct group permissions.

    Will an implementation of AbstractValueSourceHandler be available as per ServletContextPropertyPlaceholderConfigurer to enable the override of property values at the Servlet Context level?

    Regards
    Marc

  2. #2
    Join Date
    Apr 2007
    Posts
    307

    Default

    Hi Marc,

    No, this will not be made available. Core JavaConfig functionality is moving into the Spring 3.0 codebase right now, and the ValueSource-related artifacts won't be making the move. Rather, value injection will be done using Spring 3's new @Value annotation combined with Spring EL expressions.

    More on that to come, but feel free to stay tuned to the 3.0 commits if you want to see what's latest and greatest on that front.

    Bottom line, you'll be able to inject and override values quite flexibly. 3.0M3 is just around the corner, and it will include the initial cut of @Configuration and @Bean support.
    Chris Beams
    Spring Framework committer, VMware
    http://github.com/cbeams

  3. #3
    Join Date
    Aug 2005
    Location
    Sussex, UK
    Posts
    92

    Default

    Thanks for the reply (why aren't all forums like Spring forums!).
    Use of EL and the new @Value annotation would appear to make great sense.
    I'll look at the milestone when released.

    Many Thanks
    Marc

Posting Permissions

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