Tabnine Logo
QualifierAnnotationAutowireCandidateResolver.extractValue
Code IndexAdd Tabnine to your IDE (free)

How to use
extractValue
method
in
org.springframework.beans.factory.annotation.QualifierAnnotationAutowireCandidateResolver

Best Java code snippets using org.springframework.beans.factory.annotation.QualifierAnnotationAutowireCandidateResolver.extractValue (Showing top 3 results out of 315)

origin: spring-projects/spring-framework

/**
 * Determine a suggested value from any of the given candidate annotations.
 */
@Nullable
protected Object findValue(Annotation[] annotationsToSearch) {
  if (annotationsToSearch.length > 0) {   // qualifier annotations have to be local
    AnnotationAttributes attr = AnnotatedElementUtils.getMergedAnnotationAttributes(
        AnnotatedElementUtils.forAnnotations(annotationsToSearch), this.valueAnnotationType);
    if (attr != null) {
      return extractValue(attr);
    }
  }
  return null;
}
origin: org.springframework/spring-beans

/**
 * Determine a suggested value from any of the given candidate annotations.
 */
@Nullable
protected Object findValue(Annotation[] annotationsToSearch) {
  if (annotationsToSearch.length > 0) {   // qualifier annotations have to be local
    AnnotationAttributes attr = AnnotatedElementUtils.getMergedAnnotationAttributes(
        AnnotatedElementUtils.forAnnotations(annotationsToSearch), this.valueAnnotationType);
    if (attr != null) {
      return extractValue(attr);
    }
  }
  return null;
}
origin: apache/servicemix-bundles

/**
 * Determine a suggested value from any of the given candidate annotations.
 */
protected Object findValue(Annotation[] annotationsToSearch) {
  if (annotationsToSearch.length > 0) {   // qualifier annotations have to be local
    AnnotationAttributes attr = AnnotatedElementUtils.getMergedAnnotationAttributes(
        AnnotatedElementUtils.forAnnotations(annotationsToSearch), this.valueAnnotationType);
    if (attr != null) {
      return extractValue(attr);
    }
  }
  return null;
}
org.springframework.beans.factory.annotationQualifierAnnotationAutowireCandidateResolverextractValue

Javadoc

Extract the value attribute from the given annotation.

Popular methods of QualifierAnnotationAutowireCandidateResolver

  • <init>
    Create a new QualifierAnnotationAutowireCandidateResolver for the given qualifier annotation types.
  • addQualifierType
    Register the given type to be used as a qualifier when autowiring.This identifies qualifier annotati
  • checkQualifier
    Match the given qualifier annotation against the candidate bean definition.
  • checkQualifiers
    Match the given qualifier annotations against the candidate bean definition.
  • isQualifier
    Checks whether the given annotation type is a recognized qualifier type.
  • findValue
    Determine a suggested value from any of the given candidate annotations.
  • getBeanFactory
  • getFactoryMethodAnnotation
  • getQualifiedElementAnnotation
  • getResolvedDecoratedDefinition
  • getSuggestedValue
    Determine whether the given dependency declares a value annotation.
  • setBeanFactory
  • getSuggestedValue,
  • setBeanFactory

Popular in Java

  • Finding current android device location
  • findViewById (Activity)
  • getSystemService (Context)
  • getExternalFilesDir (Context)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now