static ActiveDescriptor<?> translateToActiveDescriptor(InstanceBinding<?> desc, Type... contracts) { AbstractActiveDescriptor<?> binding; if (contracts.length == 0) { binding = BuilderHelper.createConstantDescriptor(desc.getService()); } else { binding = BuilderHelper.createConstantDescriptor(desc.getService(), null, contracts); } binding.setName(desc.getName()); binding.setClassAnalysisName(desc.getAnalyzer()); if (desc.getScope() != null) { binding.setScope(desc.getScope().getName()); } if (desc.getRank() != null) { binding.setRanking(desc.getRank()); } for (Annotation annotation : desc.getQualifiers()) { binding.addQualifierAnnotation(annotation); } for (Type contract : desc.getContracts()) { binding.addContractType(contract); } if (desc.isProxiable() != null) { binding.setProxiable(desc.isProxiable()); } if (desc.isProxiedForSameScope() != null) { binding.setProxyForSameScope(desc.isProxiedForSameScope()); } return binding; }
static ActiveDescriptor<?> translateToActiveDescriptor(InstanceBinding<?> desc, Type... contracts) { AbstractActiveDescriptor<?> binding; if (contracts.length == 0) { binding = BuilderHelper.createConstantDescriptor(desc.getService()); } else { binding = BuilderHelper.createConstantDescriptor(desc.getService(), null, contracts); } binding.setName(desc.getName()); binding.setClassAnalysisName(desc.getAnalyzer()); if (desc.getScope() != null) { binding.setScope(desc.getScope().getName()); } if (desc.getRank() != null) { binding.setRanking(desc.getRank()); } for (Annotation annotation : desc.getQualifiers()) { binding.addQualifierAnnotation(annotation); } for (Type contract : desc.getContracts()) { binding.addContractType(contract); } if (desc.isProxiable() != null) { binding.setProxiable(desc.isProxiable()); } if (desc.isProxiedForSameScope() != null) { binding.setProxyForSameScope(desc.isProxiedForSameScope()); } return binding; }
/** * Sets the scope annotation for this descriptor * * @param scopeAnnotation The non-null scope annotation for this service */ public void setScopeAnnotation(Class<? extends Annotation> scopeAnnotation) { this.scope = scopeAnnotation; setScope(this.scope.getName()); }
/** * Sets the scope annotation for this descriptor * * @param scopeAnnotation The non-null scope annotation for this service */ public void setScopeAnnotation(Class<? extends Annotation> scopeAnnotation) { this.scope = scopeAnnotation; setScope(this.scope.getName()); }
/** * Sets the scope annotation for this descriptor * * @param scopeAnnotation The non-null scope annotation for this service */ public void setScopeAnnotation(Class<? extends Annotation> scopeAnnotation) { this.scope = scopeAnnotation; setScope(this.scope.getName()); }
/** * Sets the scope annotation for this descriptor * * @param scopeAnnotation The non-null scope annotation for this service */ public void setScopeAnnotation(Class<? extends Annotation> scopeAnnotation) { this.scope = scopeAnnotation; setScope(this.scope.getName()); }
setScope(scope.getName());
setScope(scope.getName());
setScope(scope.getName());
setScope(scope.getName());
descriptor.setScope(scope.getName());
descriptor.setScope(scope.getName());
descriptor.setScope(scope.getName());
descriptor.setScope(scope.getName());
this.contract = contract; addAdvertisedContract(contract); super.setScope(descriptor.getScope()); super.addMetadata(ALIAS_METADATA_MARKER, getAliasMetadataValue(descriptor));
this.contract = contract; addAdvertisedContract(contract); super.setScope(descriptor.getScope()); super.addMetadata(ALIAS_METADATA_MARKER, getAliasMetadataValue(descriptor));
this.contract = contract; addAdvertisedContract(contract); super.setScope(descriptor.getScope()); super.addMetadata(ALIAS_METADATA_MARKER, getAliasMetadataValue(descriptor));
this.contract = contract; addAdvertisedContract(contract); super.setScope(descriptor.getScope()); super.addMetadata(ALIAS_METADATA_MARKER, getAliasMetadataValue(descriptor));
static ActiveDescriptor<?> translateToActiveDescriptor(InstanceBinding<?> desc, Type... contracts) { AbstractActiveDescriptor<?> binding; if (contracts.length == 0) { binding = BuilderHelper.createConstantDescriptor(desc.getService()); } else { binding = BuilderHelper.createConstantDescriptor(desc.getService(), null, contracts); } binding.setName(desc.getName()); binding.setClassAnalysisName(desc.getAnalyzer()); if (desc.getScope() != null) { binding.setScope(desc.getScope().getName()); } if (desc.getRank() != null) { binding.setRanking(desc.getRank()); } for (Annotation annotation : desc.getQualifiers()) { binding.addQualifierAnnotation(annotation); } for (Type contract : desc.getContracts()) { binding.addContractType(contract); } if (desc.isProxiable() != null) { binding.setProxiable(desc.isProxiable()); } if (desc.isProxiedForSameScope() != null) { binding.setProxyForSameScope(desc.isProxiedForSameScope()); } return binding; }
static ActiveDescriptor<?> translateToActiveDescriptor(InstanceBinding<?> desc, Type... contracts) { AbstractActiveDescriptor<?> binding; if (contracts.length == 0) { binding = BuilderHelper.createConstantDescriptor(desc.getService()); } else { binding = BuilderHelper.createConstantDescriptor(desc.getService(), null, contracts); } binding.setName(desc.getName()); binding.setClassAnalysisName(desc.getAnalyzer()); if (desc.getScope() != null) { binding.setScope(desc.getScope().getName()); } if (desc.getRank() != null) { binding.setRanking(desc.getRank()); } for (Annotation annotation : desc.getQualifiers()) { binding.addQualifierAnnotation(annotation); } for (Type contract : desc.getContracts()) { binding.addContractType(contract); } if (desc.isProxiable() != null) { binding.setProxiable(desc.isProxiable()); } if (desc.isProxiedForSameScope() != null) { binding.setProxyForSameScope(desc.isProxiedForSameScope()); } return binding; }