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 SummaryConstructors
- 
Method SummaryModifier 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 fullPath) Notify Listener about watch eventvoidRemoves aProviderChangeListener.
- 
Constructor Details- 
FileTransformationProvider
 
- 
- 
Method Details- 
deactivatepublic void deactivate()
- 
addProviderChangeListenerDescription copied from interface:ProviderAdds aProviderChangeListenerwhich must be notified if there are changes concerning the elements provided by theProvider.- Specified by:
- addProviderChangeListenerin interface- Provider<Transformation>
- Parameters:
- listener- the listener to be added
 
- 
removeProviderChangeListenerDescription copied from interface:ProviderRemoves aProviderChangeListener.- Specified by:
- removeProviderChangeListenerin interface- Provider<Transformation>
- Parameters:
- listener- the listener to be removed.
 
- 
getAllDescription copied from interface:ProviderReturns a collection of all elements.- Specified by:
- getAllin interface- Provider<Transformation>
- Returns:
- collection of all elements
 
- 
processWatchEventDescription copied from interface:WatchService.WatchEventListenerNotify Listener about watch event- Specified by:
- processWatchEventin interface- WatchService.WatchEventListener
- Parameters:
- kind- the- WatchService.Kindof this event
- fullPath- the absolute path of the file associated with this event
 
 
-