fixed MethodInvokingJobDetailFactoryBean's Quartz 2.0 support

This commit is contained in:
Juergen Hoeller 2011-10-20 10:27:28 +00:00
parent 0dfb617d8a
commit 3f73f51966
1 changed files with 2 additions and 2 deletions

View File

@ -194,8 +194,8 @@ public class MethodInvokingJobDetailFactoryBean extends ArgumentConvertingMethod
// Build JobDetail instance.
if (jobDetailImplClass != null) {
// Using Quartz 2.0 JobDetailImpl class...
Object jobDetail = BeanUtils.instantiate(jobDetailImplClass);
BeanWrapper bw = PropertyAccessorFactory.forBeanPropertyAccess(jobDetail);
this.jobDetail = (JobDetail) BeanUtils.instantiate(jobDetailImplClass);
BeanWrapper bw = PropertyAccessorFactory.forBeanPropertyAccess(this.jobDetail);
bw.setPropertyValue("name", name);
bw.setPropertyValue("group", this.group);
bw.setPropertyValue("jobClass", jobClass);