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 Pathprivate final com.google.common.eventbus.EventBus -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractConfigWatcher(Path configPath, com.google.common.eventbus.EventBus eventBus) -
Method Summary
Modifier and TypeMethodDescriptionabstract List<EngineRuntime.ConfigWatcherNotification> generateNotifications(T config) voidonChange(WatchEvent<?> event) path()
-
Field Details
-
configClass
-
configPath
-
eventBus
private final com.google.common.eventbus.EventBus eventBus
-
-
Constructor Details
-
AbstractConfigWatcher
-
-
Method Details
-
onChange
- Specified by:
onChangein interfaceEngineRuntime.FileWatcher
-
path
- Specified by:
pathin interfaceEngineRuntime.FileWatcher
-
loadConfig
-
generateNotifications
-