Possible Duplicate:
How do I specify values in a properties file so they can be retrieved using ResourceBundle#getStringArray?
I have a class like this:
public class BankHolidayCalendar {
List<DateTime> bankHolidays;
public BankHolidayCalendar(final List<DateTime> p_bankHolidays) {
bankHolidays = p_bankHolidays;
}
}
and a property file
# holidays.properties
holidayDates=01-01-2012, 13-02-2012, 22-04-2012
How can I read these dates from this property file and inject into the bean constructor?
I am using joda time here.