• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

aspectran / aspectran / #4702

25 Oct 2025 11:31AM UTC coverage: 37.368% (+0.02%) from 37.352%
#4702

push

github

topframe
Refactor: Simplify and improve auto-reloading mechanism

The auto-reloading logic has been improved to be more robust and predictable when handling multiple file updates.

Previously, a reload could be triggered prematurely if a file scan occurred in the middle of a copy operation. This commit introduces a "wait for one quiet interval" strategy.

A restart is now triggered only after a scan detects no new changes, following a previous scan that did detect changes. This makes the scanIntervalSeconds the effective quiet period and ensures that reloading only happens after file system activity has stabilized, without requiring
additional configuration parameters.

Additionally, the ThreadFactory creation in ContextReloadingTimer has been refactored to use the existing CustomizableThreadFactory utility, improving code reuse and consistency.

30 of 34 new or added lines in 3 files covered. (88.24%)

15516 of 41522 relevant lines covered (37.37%)

0.37 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

96.43
/core/src/main/java/com/aspectran/core/context/builder/reload/ContextReloadingTimer.java


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc