File: context.xml
"http://www.springframework.org/dtd/spring-beans.dtd">
class="org.springframework.beans.factory.config.CustomEditorConfigurer">
10/09/2001
10/26/2008
File: Main.java
import java.util.Date;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
class Main {
public static void main(String args[]) throws Exception {
ApplicationContext ctx = new ClassPathXmlApplicationContext(
"context.xml");
StartEndDatesBean startEnd = (StartEndDatesBean) ctx.getBean("startEndDatesBean");
}
}
class StartEndDatesBean {
Date startDate;
Date endDate;
public void setStartDate(Date startDate) {
this.startDate = startDate;
}
public Date getStartDate() {
return startDate;
}
public void setEndDate(Date endDate) {
this.endDate = endDate;
}
public Date getEndDate() {
return endDate;
}
}