Package ch.rswk.meta.engine
Class EngineRuntime.AbstractConfigWatcher<T>
java.lang.Object
ch.rswk.meta.engine.EngineRuntime.AbstractConfigWatcher<T>
- All Implemented Interfaces:
EngineRuntime.FileWatcher
- Direct Known Subclasses:
EngineLauncher.ConfigWatcher
- Enclosing class:
EngineRuntime
public abstract static class EngineRuntime.AbstractConfigWatcher<T>
extends Object
implements EngineRuntime.FileWatcher
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Path
private final com.google.common.eventbus.EventBus
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractConfigWatcher
(Path configPath, com.google.common.eventbus.EventBus eventBus) -
Method Summary
Modifier and TypeMethodDescriptionabstract List
<EngineRuntime.ConfigWatcherNotification> generateNotifications
(T config) void
onChange
(WatchEvent<?> event) path()
-
Field Details
-
configClass
-
configPath
-
eventBus
private final com.google.common.eventbus.EventBus eventBus
-
-
Constructor Details
-
AbstractConfigWatcher
-
-
Method Details
-
onChange
- Specified by:
onChange
in interfaceEngineRuntime.FileWatcher
-
path
- Specified by:
path
in interfaceEngineRuntime.FileWatcher
-
loadConfig
-
generateNotifications
-