Passing properties as a constructor argument
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
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.