@Override
    public void registerCustomEditors(PropertyEditorRegistry registry) {
        if (!(registry instanceof BeanWrapperImpl)) {
            return;
        }

        BeanWrapperImpl beanWrapper = (BeanWrapperImpl) registry;

        Class<?> clazz = null;
        try {
            clazz = Class.forName(SchedulerFactoryBean, true, registry.getClass().getClassLoader());
        } catch (Throwable e) {
            LOGGER.info("cannot find class for " + SchedulerFactoryBean, e);
        }

        if (null == clazz
                || null == beanWrapper.getWrappedClass()
                || !clazz.isAssignableFrom(beanWrapper.getWrappedClass())) {
            return;
        }

        registry.registerCustomEditor(Object.class, "triggers",
                new QuartzSchedulerBeanTargetEditor(context));
    }
@author Robert HG (254963746@qq.com) on 3/16/16.
lts-spring/src/main/java/com/github/ltsopensource/spring/quartz/QuartzSchedulerBeanRegistrar.java