Package org.openhab.core.thing.binding
Class BaseBridgeHandler
java.lang.Object
org.openhab.core.thing.binding.BaseThingHandler
org.openhab.core.thing.binding.BaseBridgeHandler
- All Implemented Interfaces:
BridgeHandler,ThingHandler
- Direct Known Subclasses:
ConfigStatusBridgeHandler,MagicBridgeHandler
@NonNullByDefault
public abstract class BaseBridgeHandler
extends BaseThingHandler
implements BridgeHandler
The
BaseBridgeHandler implements the BridgeHandler interface and adds some convenience methods for
bridges to the BaseThingHandler.
It is recommended to extend this abstract base class.
- Author:
- Dennis Nobel - Initial contribution, Stefan Bußweiler - Added implementation of BridgeHandler interface, Andrew Fiddian-Green - Added semanticEquipmentTag
-
Field Summary
Fields inherited from class org.openhab.core.thing.binding.BaseThingHandler
scheduler, thing -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchildHandlerDisposed(ThingHandler childHandler, Thing childThing) Informs the bridge handler that a child handler has been disposed.voidchildHandlerInitialized(ThingHandler childHandler, Thing childThing) Informs the bridge handler that a child handler has been initialized.protected BridgeBuilderCreates a bridge builder, which allows to modify the bridge.getThing()Returns theThing, which belongs to the handler.Methods inherited from class org.openhab.core.thing.binding.BaseThingHandler
bridgeStatusChanged, changeThingType, channelLinked, channelUnlinked, dispose, editConfiguration, editProperties, getBridge, getCallback, getConfig, getConfigAs, getConfigDescription, getConfigDescription, handleConfigurationUpdate, handleRemoval, isInitialized, isLinked, isLinked, isModifyingCurrentConfig, postCommand, postCommand, sendTimeSeries, sendTimeSeries, setCallback, thingUpdated, triggerChannel, triggerChannel, triggerChannel, triggerChannel, updateConfiguration, updateProperties, updateProperty, updateState, updateState, updateStatus, updateStatus, updateStatus, updateThing, validateConfigurationParametersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openhab.core.thing.binding.ThingHandler
bridgeStatusChanged, channelLinked, channelUnlinked, dispose, getServices, handleCommand, handleConfigurationUpdate, handleRemoval, initialize, setCallback, thingUpdated
-
Constructor Details
-
BaseBridgeHandler
- See Also:
-
-
Method Details
-
getThing
Description copied from interface:ThingHandlerReturns theThing, which belongs to the handler.- Specified by:
getThingin interfaceThingHandler- Overrides:
getThingin classBaseThingHandler- Returns:
Thing, which belongs to the handler
-
editThing
Creates a bridge builder, which allows to modify the bridge. The methodBaseThingHandler.updateThing(Thing)must be called to persist the changes.- Overrides:
editThingin classBaseThingHandler- Returns:
BridgeBuilderwhich builds an exact copy of the bridge
-
childHandlerInitialized
Description copied from interface:BridgeHandlerInforms the bridge handler that a child handler has been initialized.- Specified by:
childHandlerInitializedin interfaceBridgeHandler- Parameters:
childHandler- the initialized child handlerchildThing- the thing of the initialized child handler
-
childHandlerDisposed
Description copied from interface:BridgeHandlerInforms the bridge handler that a child handler has been disposed.- Specified by:
childHandlerDisposedin interfaceBridgeHandler- Parameters:
childHandler- the disposed child handlerchildThing- the thing of the disposed child handler
-