@Override public void disable() { scr.disableComponent(config.description); } }
@Override public void enable() { scr.disableComponent(config.description); }
public void disableComponent(long bundleId, String componentName) { scrService.disableComponent(findComponent(bundleId, componentName)); }
@Override public void disable(String componentName) { for (Bundle bundle : bundleContext.getBundles()) { ComponentDescriptionDTO dto = scr.getComponentDescriptionDTO(bundle, componentName); if (dto != null && scr.isComponentEnabled(dto)) { log.info("Component {} disabled by configuration.", dto.implementationClass); scr.disableComponent(dto); } } }
@Override public void disable(String componentName) { for (Bundle bundle : bundleContext.getBundles()) { ComponentDescriptionDTO dto = scr.getComponentDescriptionDTO(bundle, componentName); if (dto != null && scr.isComponentEnabled(dto)) { log.info("Component {} disabled by configuration.", dto.implementationClass); scr.disableComponent(dto); } } }
private void disableComponent(String name) { ComponentDescriptionDTO component = getComponent(name); if (component != null && scrService.isComponentEnabled(component)) { log.info("Disabling component {}", name); try { scrService.disableComponent(component).timeout(TIMEOUT); } catch (Exception e) { throw new IllegalStateException("Unable to start component " + name, e); } } } }
wait(this.runtime.disableComponent(reqInfo.component.description)); found = true;
@Descriptor("Disable an enabled component") public boolean disable(@Descriptor("Name of the component") final String name) { boolean changed = false; for (ComponentDescriptionDTO comp : findComponents(name)) { if (scr.isComponentEnabled(comp)) { scr.disableComponent(comp); changed = true; } } return changed; }
@Descriptor("Disable an enabled component") public boolean disable(@Descriptor("Name of the component") final String name) { boolean changed = false; for (ComponentDescriptionDTO comp : findComponents(name)) { if (scr.isComponentEnabled(comp)) { scr.disableComponent(comp); changed = true; } } return changed; }