Package org.openhab.core.transform
Class FileTransformationProvider
java.lang.Object
org.openhab.core.transform.FileTransformationProvider
- All Implemented Interfaces:
Provider<Transformation>,WatchService.WatchEventListener,TransformationProvider
@NonNullByDefault
public class FileTransformationProvider
extends Object
implements WatchService.WatchEventListener, TransformationProvider
The
FileTransformationProvider implements a TransformationProvider for
supporting transformations stored in configuration files- Author:
- Jan N. Klug - Initial contribution
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds aProviderChangeListenerwhich must be notified if there are changes concerning the elements provided by theProvider.voidgetAll()Returns a collection of all elements.voidprocessWatchEvent(WatchService.Kind kind, Path path) Notify Listener about watch eventvoidRemoves aProviderChangeListener.
-
Constructor Details
-
FileTransformationProvider
-
-
Method Details
-
deactivate
public void deactivate() -
addProviderChangeListener
Description copied from interface:ProviderAdds aProviderChangeListenerwhich must be notified if there are changes concerning the elements provided by theProvider.- Specified by:
addProviderChangeListenerin interfaceProvider<Transformation>- Parameters:
listener- the listener to be added
-
removeProviderChangeListener
Description copied from interface:ProviderRemoves aProviderChangeListener.- Specified by:
removeProviderChangeListenerin interfaceProvider<Transformation>- Parameters:
listener- the listener to be removed.
-
getAll
Description copied from interface:ProviderReturns a collection of all elements.- Specified by:
getAllin interfaceProvider<Transformation>- Returns:
- collection of all elements
-
processWatchEvent
Description copied from interface:WatchService.WatchEventListenerNotify Listener about watch event- Specified by:
processWatchEventin interfaceWatchService.WatchEventListener- Parameters:
kind- theWatchService.Kindof this eventpath- the relative path of the file associated with this event
-