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);
}