if (isServiceFactory && component.getImmediate() != null && component.getImmediate().booleanValue() && component.getFactory() != null) { this.logError(component, if (component.getImmediate() != null && component.getImmediate().booleanValue() && component.getFactory() != null) { this.logError(component, "Component must not be immediate if component factory: " + this.container.getClassDescription().getDescribedClass().getName());
IOUtils.addAttribute(ai, COMPONENT_ATTR_IMMEDIATE, component.getImmediate()); IOUtils.addAttribute(ai, ATTR_NAME, component.getName()); IOUtils.addAttribute(ai, COMPONENT_ATTR_FACTORY, component.getFactory());
componentDesc.setEnabled(cd.getEnabled()); if ( componentDesc.getImmediate() == null ) { componentDesc.setImmediate(cd.getImmediate());
@Override public AbstractDescription clone() { final ComponentDescription cd = new ComponentDescription(this.annotation); cd.setName(this.getName()); cd.setLabel(this.getLabel()); cd.setDescription(this.getDescription()); cd.setConfigurationPolicy(this.getConfigurationPolicy()); cd.setAbstract(this.isAbstract); cd.setInherit(this.isInherit); cd.setCreateDs(this.isCreateDs()); cd.setCreateMetatype(this.isCreateMetatype()); cd.setEnabled(this.getEnabled()); cd.setImmediate(this.getImmediate()); cd.setFactory(this.getFactory()); cd.setSetMetatypeFactoryPid(this.isSetMetatypeFactoryPid()); cd.setActivate(this.getActivate()); cd.setDeactivate(this.getDeactivate()); cd.setModified(this.getModified()); cd.setSpecVersion(this.getSpecVersion()); cd.setConfigurationPid(this.getConfigurationPid()); return cd; } }