想用quartz提供其它trigger模式,默认是 private int misfireInstruction = SimpleTrigger.MISFIRE_INSTRUCTION_SMART_POLICY;
var ioc = {
"scheduler" :{
"type" :"org.quartz.Scheduler",
"factory" :"org.quartz.impl.StdSchedulerFactory#getDefaultScheduler",
"events" :{
"create" :"start",
"depose" :"shutdown"
},
"fields" :{
"jobFactory" :{
"refer" :"jobFactory"
}
}
},
"jobFactory" :{
"type" :"org.nutz.integration.quartz.NutQuartzJobFactory",
"args" :[{
"refer" :"$ioc"
}]
},
"nutQuartzCronJobFactory" :{
"type" :"org.nutz.integration.quartz.NutQuartzCronJobFactory",
"events" :{
"create" :"init"
},
"fields" :{
"scheduler" :{
"refer" :"scheduler"
},
"conf" :{
"refer" :"@confName"
}
}
},
"quartzManager" : {
"type" :"org.nutz.integration.quartz.QuartzManagerImpl",
"fields" :{
"scheduler" :{
"refer" :"scheduler"
}
}
}
};
怎么在ioc中配置呢,需要从头自定义Scheduler吗?