From 4fb68bef043d5f8fd49c50a7197716169fa37bdc Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Fri, 13 Nov 2009 00:10:37 +0000 Subject: [PATCH] polishing --- build-spring-framework/resources/changelog.txt | 13 ++++++++----- .../scheduling/quartz/SchedulerFactoryBean.java | 7 ++++--- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/build-spring-framework/resources/changelog.txt b/build-spring-framework/resources/changelog.txt index 4519c09076..39a185bafb 100644 --- a/build-spring-framework/resources/changelog.txt +++ b/build-spring-framework/resources/changelog.txt @@ -14,16 +14,19 @@ Changes in version 3.0.0.RC2 (2009-11-13) * added AnnotatedBeanDefinitionReader helper for programmatic registration of annotated classes * added AnnotationConfig(Web)ApplicationContext for convenient registration/scanning of classes * added GenericXmlApplicationContext with flexible configuration options for its XML support -* PathMatchingResourcePatternResolver leniently ignores non-existing root directories -* DefaultConversionService understands "on"/"off", "yes"/"no", "1"/"0" as boolean values -* CustomEditorConfigurer supports PropertyEditor instances again (with deprecation warning) * AbstractApplicationContext can also start up in case of system properties access failure * internal MergedBeanDefinitionPostProcessors apply after all other post-processors * inner beans detected as ApplicationListeners as well (only supported for inner singletons) * child bean definition's scope attribute can be inherited from parent bean definition now -* revised MethodParameter's annotation accessor methods -* ClassUtils is now parametrized with Class and Class where appropriate +* introduced SmartLifecycle interface with auto-startup and shutdown order support +* introduced LifecycleProcessor delegate, customizable through "lifecycleProcessor" bean +* MessageListenerContainers and Quartz SchedulerFactoryBean start up on refresh instead of init * added initialize-database tag to jdbc namespace for populating external data sources with data +* PathMatchingResourcePatternResolver leniently ignores non-existing root directories +* DefaultConversionService understands "on"/"off", "yes"/"no", "1"/"0" as boolean values +* CustomEditorConfigurer supports PropertyEditor instances again (with deprecation warning) +* revised MethodParameter's annotation accessor methods +* ClassUtils is now parameterized with Class and Class where appropriate * DataBinder now accepts var-args to set allowed, disallowed, and required fields * DataBinder auto-grows nested paths on traversal (avoiding NullValueInNestedPathException) * fixed enum binding regression with WebRequestDataBinder (as used by @MVC data binding now) diff --git a/org.springframework.context.support/src/main/java/org/springframework/scheduling/quartz/SchedulerFactoryBean.java b/org.springframework.context.support/src/main/java/org/springframework/scheduling/quartz/SchedulerFactoryBean.java index b40addd193..b610051215 100644 --- a/org.springframework.context.support/src/main/java/org/springframework/scheduling/quartz/SchedulerFactoryBean.java +++ b/org.springframework.context.support/src/main/java/org/springframework/scheduling/quartz/SchedulerFactoryBean.java @@ -159,7 +159,7 @@ public class SchedulerFactoryBean extends SchedulerAccessor implements FactoryBe } - private Class schedulerFactoryClass = StdSchedulerFactory.class; + private Class schedulerFactoryClass = StdSchedulerFactory.class; private String schedulerName; @@ -450,7 +450,8 @@ public class SchedulerFactoryBean extends SchedulerAccessor implements FactoryBe } // Create SchedulerFactory instance. - SchedulerFactory schedulerFactory = (SchedulerFactory) BeanUtils.instantiateClass(this.schedulerFactoryClass); + SchedulerFactory schedulerFactory = (SchedulerFactory) + BeanUtils.instantiateClass(this.schedulerFactoryClass); initSchedulerFactory(schedulerFactory); @@ -726,7 +727,7 @@ public class SchedulerFactoryBean extends SchedulerAccessor implements FactoryBe } public void stop(Runnable callback) throws SchedulingException { - this.stop(); + stop(); callback.run(); }