congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
BeanManagerLogger.injectionPointHasAmbiguousDependencies
Code IndexAdd Tabnine to your IDE (free)

How to use
injectionPointHasAmbiguousDependencies
method
in
org.jboss.weld.logging.BeanManagerLogger

Best Java code snippets using org.jboss.weld.logging.BeanManagerLogger.injectionPointHasAmbiguousDependencies (Showing top 7 results out of 315)

origin: weld/weld-vertx

@SuppressWarnings("unchecked")
private void initWithWorker(Type requiredType, Annotation[] qualifiers, Vertx vertx, BeanManager beanManager) {
  vertx.<Object> executeBlocking((f -> {
    WeldInstance<Object> asyncInstance = instance.select(requiredType, qualifiers);
    if (asyncInstance.isUnsatisfied()) {
      f.fail(BeanManagerLogger.LOG.injectionPointHasUnsatisfiedDependencies(Arrays.toString(qualifiers), requiredType, ""));
      return;
    } else if (asyncInstance.isAmbiguous()) {
      f.fail(BeanManagerLogger.LOG.injectionPointHasAmbiguousDependencies(Arrays.toString(qualifiers), requiredType, ""));
      return;
    }
    Handler<Object> handler = asyncInstance.getHandler();
    Object beanInstance = handler.get();
    if (beanManager.isNormalScope(handler.getBean().getScope()) && beanInstance instanceof TargetInstanceProxy) {
      // Initialize normal scoped bean instance eagerly
      ((TargetInstanceProxy<?>) beanInstance).getTargetInstance();
    }
    f.complete(beanInstance);
  }), (r) -> {
    if (r.succeeded()) {
      sucess((T) r.result());
    } else {
      failure(r.cause());
    }
  });
}
origin: weld/core

private void checkBeanResolved() {
  if (bean != null) {
    return;
  } else if (isUnsatisfied()) {
    throw BeanManagerLogger.LOG.injectionPointHasUnsatisfiedDependencies(Formats.formatAnnotations(ip.getQualifiers()),
        Formats.formatInjectionPointType(ip.getType()), InjectionPoints.getUnsatisfiedDependenciesAdditionalInfo(ip, getBeanManager()));
  } else {
    throw BeanManagerLogger.LOG.injectionPointHasAmbiguousDependencies(Formats.formatAnnotations(ip.getQualifiers()),
        Formats.formatInjectionPointType(ip.getType()), WeldCollections.toMultiRowString(allBeans()));
  }
}
origin: weld/core

private void checkBeanResolved() {
  if (bean != null) {
    return;
  } else if (isUnsatisfied()) {
    throw BeanManagerLogger.LOG.injectionPointHasUnsatisfiedDependencies(Formats.formatAnnotations(ip.getQualifiers()),
        Formats.formatInjectionPointType(ip.getType()), InjectionPoints.getUnsatisfiedDependenciesAdditionalInfo(ip, getBeanManager()));
  } else {
    throw BeanManagerLogger.LOG.injectionPointHasAmbiguousDependencies(Formats.formatAnnotations(ip.getQualifiers()),
        Formats.formatInjectionPointType(ip.getType()), WeldCollections.toMultiRowString(allBeans()));
  }
}
origin: org.jboss.weld.se/weld-se

private void checkBeanResolved() {
  if (bean != null) {
    return;
  } else if (isUnsatisfied()) {
    throw BeanManagerLogger.LOG.injectionPointHasUnsatisfiedDependencies(Formats.formatAnnotations(ip.getQualifiers()),
        Formats.formatInjectionPointType(ip.getType()), InjectionPoints.getUnsatisfiedDependenciesAdditionalInfo(ip, getBeanManager()));
  } else {
    throw BeanManagerLogger.LOG.injectionPointHasAmbiguousDependencies(Formats.formatAnnotations(ip.getQualifiers()),
        Formats.formatInjectionPointType(ip.getType()), WeldCollections.toMultiRowString(allBeans()));
  }
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

private void checkBeanResolved() {
  if (bean != null) {
    return;
  } else if (isUnsatisfied()) {
    throw BeanManagerLogger.LOG.injectionPointHasUnsatisfiedDependencies(Formats.formatAnnotations(ip.getQualifiers()),
        Formats.formatInjectionPointType(ip.getType()), InjectionPoints.getUnsatisfiedDependenciesAdditionalInfo(ip, getBeanManager()));
  } else {
    throw BeanManagerLogger.LOG.injectionPointHasAmbiguousDependencies(Formats.formatAnnotations(ip.getQualifiers()),
        Formats.formatInjectionPointType(ip.getType()), WeldCollections.toMultiRowString(allBeans()));
  }
}
origin: weld/core

private void checkBeanResolved() {
  if (bean != null) {
    return;
  } else if (isUnsatisfied()) {
    throw BeanManagerLogger.LOG.injectionPointHasUnsatisfiedDependencies(Formats.formatAnnotations(ip.getQualifiers()),
        Formats.formatInjectionPointType(ip.getType()), InjectionPoints.getUnsatisfiedDependenciesAdditionalInfo(ip, getBeanManager()));
  } else {
    throw BeanManagerLogger.LOG.injectionPointHasAmbiguousDependencies(Formats.formatAnnotations(ip.getQualifiers()),
        Formats.formatInjectionPointType(ip.getType()), WeldCollections.toMultiRowString(allBeans()));
  }
}
origin: org.jboss.weld.se/weld-se-shaded

private void checkBeanResolved() {
  if (bean != null) {
    return;
  } else if (isUnsatisfied()) {
    throw BeanManagerLogger.LOG.injectionPointHasUnsatisfiedDependencies(Formats.formatAnnotations(ip.getQualifiers()),
        Formats.formatInjectionPointType(ip.getType()), InjectionPoints.getUnsatisfiedDependenciesAdditionalInfo(ip, getBeanManager()));
  } else {
    throw BeanManagerLogger.LOG.injectionPointHasAmbiguousDependencies(Formats.formatAnnotations(ip.getQualifiers()),
        Formats.formatInjectionPointType(ip.getType()), WeldCollections.toMultiRowString(allBeans()));
  }
}
org.jboss.weld.loggingBeanManagerLoggerinjectionPointHasAmbiguousDependencies

Popular methods of BeanManagerLogger

  • beanManagerNotAvailable
  • injectionPointHasUnsatisfiedDependencies
  • ambiguousBeanManager
  • ambiguousBeansForDependency
  • cannotCreateBeanAttributesForIncorrectAnnotatedMember
  • cannotLocateBeanManager
  • contextNotActive
  • duplicateActiveContexts
  • duplicateInterceptorBinding
  • duplicateQualifiers
  • interceptorBindingsEmpty
  • interceptorResolutionWithNonbindingType
  • interceptorBindingsEmpty,
  • interceptorResolutionWithNonbindingType,
  • invalidQualifier,
  • methodNotAvailableAfterShutdown,
  • methodNotAvailableDuringInitialization,
  • noDecoratorTypes,
  • noInstanceOfExtension,
  • notInterceptorBindingType,
  • notStereotype

Popular in Java

  • Reactive rest calls using spring rest template
  • getSharedPreferences (Context)
  • getResourceAsStream (ClassLoader)
  • setRequestProperty (URLConnection)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • JComboBox (javax.swing)
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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