if (option instanceof BeliefSystemTypeOption) {
BeliefSystemTypeOption kieOption = (BeliefSystemTypeOption)option;
return org.drools.runtime.conf.BeliefSystemTypeOption.get(kieOption.getBelieSystemType());
}
if (option instanceof ClockTypeOption) {
ClockTypeOption kieOption = (ClockTypeOption)option;
return org.drools.runtime.conf.ClockTypeOption.get(kieOption.getClockType());
}
if (option instanceof KeepReferenceOption) {
KeepReferenceOption kieOption = (KeepReferenceOption)option;
switch (kieOption) {
case YES:
return org.drools.runtime.conf.KeepReferenceOption.YES;
case NO:
return org.drools.runtime.conf.KeepReferenceOption.NO;
}
}
if (option instanceof QueryListenerOption) {
QueryListenerOption kieOption = (QueryListenerOption)option;
switch (kieOption) {
case STANDARD:
return org.drools.runtime.conf.QueryListenerOption.STANDARD;
case LIGHTWEIGHT:
return org.drools.runtime.conf.QueryListenerOption.LIGHTWEIGHT;
}
}
if (option instanceof TimerJobFactoryOption) {
TimerJobFactoryOption kieOption = (TimerJobFactoryOption)option;
return org.drools.runtime.conf.TimerJobFactoryOption.get(kieOption.getTimerJobType());
}
throw new UnsupportedOperationException("Unknown option " + option);
}