Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 3c932b0

Browse files
committed
Update README and improvment logging statement
1 parent 7f3534f commit 3c932b0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,14 @@ When an ENTRY_MODIFY event is fired firstly the resource changed is checked for
3535
A set of integration and unit tests can be found in _src/test/java_ (tests) & _src/test/resources_ (test resources)
3636

3737
### TODO (Unfinished) ###
38+
* Update test method names
39+
* Creation of any test utilities or helper classes
3840
* Assign a new thread to each resource directory specified (see: FileWatcherUnitTest.class for failing test @Ignore)
3941

4042
### Why? ###
4143
* Useful for web applications which often need configuration changes but you don't always want to restart the application before new properties are used.
4244
* Can be used to define several layers of properties which can aid in defining multiple application configurations e.g sandbox/development/testing/production.
43-
* A pet project of mine I have been intending to implement/test for a while
45+
* A pet project of mine I have been intending to implement for a while
4446
* A test of the new Java 7 WatchService API
4547
* Another dive in Spring & general investigation of Google Guava's EventBus, a class which I believe is the extremely useful and easy to use
4648
* The project is aimed to be open to modification if required

src/main/java/com/morgan/design/properties/internal/FileWatcher.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,9 @@ public void run() {
5858
final Kind<?> eventKind = event.kind();// returns the event type
5959
final Path target = (Path) event.context();// returns the context of the event
6060

61+
log.debug("File modification Event Trigered");
6162
if (isSameTargetFile(resourceName, target)) {
62-
log.debug("File modification heard");
63+
log.debug("Resource Change is known properties file {}", resourceName);
6364
log.debug("Target [{}]", target);
6465
log.debug("Event Kind [{}]", eventKind);
6566
log.debug("Watched Path [{}]", watchedPath);

0 commit comments

Comments
 (0)