Search in sources :

Example 1 with UID

use of org.eclipse.smarthome.core.thing.UID in project smarthome by eclipse.

the class BlueZHandlerFactory method removeHandler.

@Override
protected synchronized void removeHandler(ThingHandler thingHandler) {
    if (thingHandler instanceof BluetoothAdapter) {
        UID uid = ((BluetoothAdapter) thingHandler).getUID();
        ServiceRegistration<?> serviceReg = this.serviceRegs.remove(uid);
        if (serviceReg != null) {
            serviceReg.unregister();
        }
    }
}
Also used : ThingTypeUID(org.eclipse.smarthome.core.thing.ThingTypeUID) UID(org.eclipse.smarthome.core.thing.UID) ThingUID(org.eclipse.smarthome.core.thing.ThingUID) BluetoothAdapter(org.eclipse.smarthome.binding.bluetooth.BluetoothAdapter)

Aggregations

BluetoothAdapter (org.eclipse.smarthome.binding.bluetooth.BluetoothAdapter)1 ThingTypeUID (org.eclipse.smarthome.core.thing.ThingTypeUID)1 ThingUID (org.eclipse.smarthome.core.thing.ThingUID)1 UID (org.eclipse.smarthome.core.thing.UID)1