Commit Graph

6 Commits

Author SHA1 Message Date
Phillip Webb
3d8db7cddb Add Restart auto-configuration
Add auto-configuration for application Restarts. Restarts are enabled
by default (when not running from a fat jar) and will be triggered when
any classpath folder changes.

The ClassPathRestartStrategy additional customization of when a full
restart is required. By default a PatternClassPathRestartStrategy with
patterns loaded from DeveloperToolsProperties.

Closes gh-3084
2015-06-01 21:14:04 -07:00
Phillip Webb
a5c56ca482 Add support for Restarting applications
Add Restarter class that can be used to restart a running application
when underlying class files change. The Restarter is automatically
initialized via a ApplicationListener and automatically detects
classpath URLs that are likely to change (when not running from a fat
jar).

See gh-3084
2015-06-01 21:14:04 -07:00
Andy Clement
da51785706 Add a parent last classloader for restart use
Add a parent last classloader for use with application restarts. The
classloader provides a layer on top of the regular classloader to
contain the classes that might change when an application is restarted.

See gh-3084
2015-06-01 21:14:01 -07:00
Phillip Webb
0862412eb4 Add filesystem watcher support
Add a filesystem watcher that can be used to inform listeners of
changes (add, delete, modify) to files in specific source folders.

The implementation uses a background thread rather than the WatchService
API to remain compatible with Java 6 and because WatchService is slow on
OSX.

See gh-3084
2015-06-01 21:10:11 -07:00
Phillip Webb
08eaa66294 Automatically apply development time properties
Add auto-configuration to automatically apply properties that make
sense during application development. Currently the single property
`spring.thymeleaf.cache` is set to `false`.

Closes gh-3083
2015-06-01 21:10:04 -07:00
Phillip Webb
a8bf0d942b Add a spring-boot-developer-tools module
Add a new `spring-boot-developer-tools` module which will contain
auto-configuration to help during application development.

See gh-3082
2015-06-01 21:08:17 -07:00