/** Restart scheduler if some binding changes. */ @Override public void bindingChanged(BindingProvider provider, String itemName) { if (context.getConfig().isValid()) { if (provider instanceof WeatherBindingProvider) { context.getJobScheduler().restart(); } } super.bindingChanged(provider, itemName); }
/* (non-Javadoc) * @see org.openhab.core.binding.AbstractBinding#deactivate() */ public void deactivate() { super.deactivate(); logger.debug("eBus binding has been stopped."); if (connector != null && connector.isAlive()) { connector.interrupt(); connector = null; } if (commandProcessor != null) { commandProcessor.deactivate(); commandProcessor = null; } }
/* (non-Javadoc) * @see org.openhab.core.binding.AbstractBinding#addBindingProvider(org.openhab.core.binding.BindingProvider) */ @Override public void addBindingProvider(EBusBindingProvider provider) { super.addBindingProvider(provider); if (commandProcessor == null) { commandProcessor = new EBusCommandProcessor(); commandProcessor.setConfigurationProvider(configurationProvider); } if (provider.providesBinding()) { // items already processed, so too late for this listener. do it manually commandProcessor.allBindingsChanged(provider); } provider.addBindingChangeListener(commandProcessor); }
/* (non-Javadoc) * @see org.openhab.core.binding.AbstractBinding#activate() */ public void activate() { super.activate(); logger.debug("eBus binding has been started."); // check to ensure that it is available checkConfigurationProvider(); // observe connection, if not started 15 sec. later than start it manually // replacing a bundle doesn't recall update function, more // a bug/enhancement in openhab new Thread() { @Override public void run() { try { sleep(15000); if (connector == null) { logger.warn("eBus connector still not started, started it yet!"); Configuration configuration = configurationAdminService.getConfiguration("org.openhab.ebus", null); if (configuration != null) { updated(configuration.getProperties()); for (EBusBindingProvider provider : EBusBinding.this.providers) { commandProcessor.allBindingsChanged(provider); } } } } catch (InterruptedException e) { logger.error(e.toString(), e); } catch (ConfigurationException e) { logger.error(e.toString(), e); } catch (IOException e) { logger.error(e.toString(), e); } } }.start(); ; }
protected void removeBindingProvider(PanasonicTVBindingProvider bindingProvider) { super.removeBindingProvider(bindingProvider); }
protected void addBindingProvider(PanasonicTVBindingProvider bindingProvider) { super.addBindingProvider(bindingProvider); }
protected void removeBindingProvider(Ipx800BindingProvider bindingProvider) { super.removeBindingProvider(bindingProvider); }
protected void addBindingProvider(Ipx800BindingProvider bindingProvider) { super.addBindingProvider(bindingProvider); }
protected void removeBindingProvider(AsteriskBindingProvider bindingProvider) { super.removeBindingProvider(bindingProvider); }
protected void addBindingProvider(XplBindingProvider bindingProvider) { super.addBindingProvider(bindingProvider); }
/** Set EventPublisher in WeatherContext. */ @Override public void setEventPublisher(EventPublisher eventPublisher) { super.setEventPublisher(eventPublisher); context.setEventPublisher(eventPublisher); }
protected void addBindingProvider(OmniLinkBindingProvider bindingProvider) { super.addBindingProvider(bindingProvider); }
/* (non-Javadoc) * @see org.openhab.core.binding.AbstractBinding#removeBindingProvider(org.openhab.core.binding.BindingProvider) */ @Override public void removeBindingProvider(EBusBindingProvider provider) { super.removeBindingProvider(provider); provider.removeBindingChangeListener(commandProcessor); }
protected void removeBindingProvider(XplBindingProvider bindingProvider) { super.removeBindingProvider(bindingProvider); }
protected void addBindingProvider(HarmonyHubBindingProvider bindingProvider) { super.addBindingProvider(bindingProvider); }
protected void removeBindingProvider(HarmonyHubBindingProvider bindingProvider) { super.removeBindingProvider(bindingProvider); }
protected void removeBindingProvider(OmniLinkBindingProvider bindingProvider) { super.removeBindingProvider(bindingProvider); }
protected void addBindingProvider(AsteriskBindingProvider bindingProvider) { super.addBindingProvider(bindingProvider); }
/** {@inheritDoc} */ public void bindingChanged(BindingProvider provider, String itemName) { super.bindingChanged(provider, itemName); }