Java 类org.quartz.impl.jdbcjobstore.JobStoreTX 实例源码

项目:jooby    文件:QuartzProvider.java   
private Properties properties(final Config config) {
  Properties props = new Properties();

  // dump
  config.getConfig("org.quartz").entrySet().forEach(
      e -> props.setProperty("org.quartz." + e.getKey(), e.getValue().unwrapped().toString()));

  String store = props.getProperty("org.quartz.jobStore.class");
  if (JobStoreTX.class.getName().equals(store)) {
    String ds = props.getProperty(DS);
    if (ds == null) {
      throw new IllegalArgumentException("Missing property: " + DS);
    }
  }

  return props;
}