-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Description
Jim Kriz opened SPR-4563 and commented
Requesting an enhancement to allow ClassNotFound and other related exceptions in the CustomEditorConfigurer.postProcessBeanFactory method. We have a situation where we have set our context to lazily init all beans by default. Since the CustomEditorConfigurer is a BeanFactoryPostProcessor, it is instantiated and the postProcessBeanFactory method is invoked despite being lazily initialized. This would typically not be an issue, except that some of the classes we are registering PropertyEditor's for are not actually included in our classpath. This is by design - we want to have one single context configuration (consisting of many related context files) being consumed by many different clients. By setting the beans to lazily init, the client can choose which dependent jars it needs, based on what functionality it requires. In this particular case, one client does not need any of the functionality related to classes which are set up in the CustomEditorConfigurer, but it is forced to include them in order to successfully load the context.
Affects: 2.5.2
Attachments:
- spring-2.5.2-custompropertyeditor.patch (4.52 kB)
- spring-2.5.2-custompropertyeditor.patch (3.56 kB)