component.setSpecVersion(SpecVersion.fromName(cad.getValue("specVersion").toString()));
for(final ReferenceDescription rd : current.getDescriptions(ReferenceDescription.class)) { if ( rd.getPolicyOption() != ReferencePolicyOption.RELUCTANT ) { component.getComponentDescription().setSpecVersion(SpecVersion.VERSION_1_2); component.getComponentDescription().setSpecVersion(SpecVersion.VERSION_1_2); rd.getBind() == null ? "bind" : rd.getBind()); if ( bindMethod != null ) { component.getComponentDescription().setSpecVersion(bindMethod.requiredSpecVersion); rd.getUnbind() == null ? "unbind" : rd.getUnbind()); if ( unbindMethod != null ) { component.getComponentDescription().setSpecVersion(unbindMethod.requiredSpecVersion);
describedClass.getSource()); component.setSpecVersion(spec);
componentDesc.setSpecVersion(SpecVersion.VERSION_1_2); componentDesc.setSpecVersion(SpecVersion.VERSION_1_1); componentDesc.setSpecVersion(SpecVersion.VERSION_1_1); final Validator.MethodResult result = Validator.findLifecycleMethod(project, container, "activate", true); if ( result.method != null ) { componentDesc.setSpecVersion(result.requiredSpecVersion); final Validator.MethodResult result = Validator.findLifecycleMethod(project, container, "deactivate", false); if ( result.method != null ) { componentDesc.setSpecVersion(result.requiredSpecVersion);
container.getComponentDescription().setSpecVersion(options.getSpecVersion()); } else { container.getComponentDescription().setSpecVersion(SpecVersion.VERSION_1_0);
@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; } }