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

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

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

origin: k55k32/cms-admin-end

@SuppressWarnings({ "rawtypes" })
@Override
public Object getSuggestedValue(DependencyDescriptor descriptor) {
  Object value = parent.getSuggestedValue(descriptor);
  if (value != null) {
    return value;
  }
  value = super.getSuggestedValue(descriptor);
  if (value != null) {
    return value;
  }
  Class<?> clazz = descriptor.getDependencyType();
  if (!clazz.equals(CommonDao.class)) {
    return null;
  }
  Class<?> entityClass = descriptor.getResolvableType().getGenerics()[0].getRawClass();
  if (entityClass == null) {
    ResolvableType type = descriptor.getResolvableType().getGeneric(0);
    entityClass = type.resolve();
  }
  if (configuration == null) {
    schema = beanFactory.getBean(Schema.class);
    configuration = beanFactory.getBean(Configuration.class);
  }
  CommonDao dao = new CommonDao<>(entityClass, schema, configuration);
  return dao;
}
origin: statefulj/statefulj

return (suggested != null) ? suggested : super.getSuggestedValue(descriptor);
org.springframework.beans.factory.annotationQualifierAnnotationAutowireCandidateResolvergetSuggestedValue

Javadoc

Determine whether the given dependency declares a value 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.
  • extractValue
    Extract the value attribute from the given annotation.
  • findValue
    Determine a suggested value from any of the given candidate annotations.
  • getBeanFactory
  • getFactoryMethodAnnotation
  • getQualifiedElementAnnotation
  • getResolvedDecoratedDefinition
  • setBeanFactory
  • getResolvedDecoratedDefinition,
  • setBeanFactory

Popular in Java

  • Finding current android device location
  • getApplicationContext (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setScale (BigDecimal)
  • Kernel (java.awt.image)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top 12 Jupyter Notebook extensions
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