-
Feb 28th, 2012, 12:42 PM
#1
Passing properties as a constructor argument
Hello,
I am looking for a way to convert a properties file into a java Properties class and pass it to a constructor, or to a setter (property). How do I go about it? Most places I have searched talk of PropertyPlaceholderConfigurer, and use something like
Code:
value="${<some_key>}"
or variations thereof.
There are two references I have found on the web which roughly do what I want, by extending thePropertyPlaceholderConfigurer class, which may be found here and here.
I am wondering if there is a built-in and/or cleaner way to achieve this.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules