Results 1 to 2 of 2

Thread: Property Placeholder and SpEL

  1. #1
    Join Date
    May 2012
    Posts
    2

    Default Property Placeholder and SpEL

    Hi,

    i want to combine a property placeholder with a method call on spring bean.
    If the property isn't set, the return value of the method should be taken as default value.

    I tried the following:

    ${property.name:#{bean.method()}}
    #{${property.name}:#{bean.method()}}
    #{property.name?#{bean.method()}}
    #{${property.name}?#{bean.method()}}

    Every of these fails during bean creation.
    Is it even possible in to combine Properties and SpEL in the way i want?

    Thanks!

    Matthias

  2. #2
    Join Date
    Dec 2009
    Location
    India
    Posts
    108

    Default

    In my knowledge, I don't think its possible to do

Posting Permissions

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