ReloadablePropertiesAnnotation
ReloadablePropertiesAnnotation copied to clipboard
Dynamic property configurations reload during runtime utilising Java 7 WatchService API, Google Guava and Spring 3.2.5
This should be delivered as a maven dependency, and a input in the java config, not dozen of beans that must be configured to work..
org.springframework.beans.factory.UnsatisfiedDependencyException for reloadablePropertyPostProcessor
Can't figure out the exception while starting the server after making these configurations Any ideas/suggestions? org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'reloadablePropertyPostProcessor' defined in file [/Users/xxxxx/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/spring3-mvc-maven-xml-hello-world/WEB-INF/classes/com/demo/design/properties/internal/ReloadablePropertyPostProcessor.class]: Unsatisfied dependency expressed through...
Spring 4
- Test on Spring 4 - Investigate other features which may be useful from Spring 4
Hi James, Rather than implementing your own TypeConversion and hence adding dependencies onto Joda you should be able to hook into ConfigurableBeanFactory.getTypeConverter() (within your ReloadablePropertyPostProcessor - making it BeanFactoryAware) and...
How is this supposed to work in multithreaded applications? If you update your property from property watcher thread, there is no guarantee that this update will be visible for any...
Results : Failed tests: testModifyingADifferentResoruceInSameDirectory(com.morgan.design.properties.internal.PropertiesWatcherUnitTest): actual resource is null Tests run: 39, Failures: 1, Errors: 0, Skipped: 0 as i've found the problem goes from logback stdout in debug mode....
In class PropertiesWatcher method pathMatchResources does not always work. indeed it uses Path.getFileName().toString() method to compare with resource. But toString method does not always returns file name as expected, depending...
in ReadablePropertySourcesPlaceholderConfigurer only setLocations method is overrided, simply add the following to have setLocation working aswell, if not you, will get a NullPointerException when starting PropertiesWatcher task. ``` java @Override...