Class AbstractTypeSafeBeanResolver.BeanDisambiguation

java.lang.Object
org.jboss.weld.resolution.AbstractTypeSafeBeanResolver.BeanDisambiguation
All Implemented Interfaces:
Function<Set<jakarta.enterprise.inject.spi.Bean<?>>,Set<jakarta.enterprise.inject.spi.Bean<?>>>
Enclosing class:
AbstractTypeSafeBeanResolver<T extends jakarta.enterprise.inject.spi.Bean<?>,C extends Collection<T>>

public class AbstractTypeSafeBeanResolver.BeanDisambiguation extends Object implements Function<Set<jakarta.enterprise.inject.spi.Bean<?>>,Set<jakarta.enterprise.inject.spi.Bean<?>>>
  • Method Summary

    Modifier and Type
    Method
    Description
    Set<jakarta.enterprise.inject.spi.Bean<?>>
    apply(Set<jakarta.enterprise.inject.spi.Bean<?>> from)
     
    Set<jakarta.enterprise.inject.spi.Bean<?>>
    resolveAlternatives(Set<jakarta.enterprise.inject.spi.Bean<?>> alternatives)
    If all the beans left are alternatives with a priority, then the container will select the alternative with the highest priority, and the ambiguous dependency is called resolvable.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • Method Details

    • apply

      public Set<jakarta.enterprise.inject.spi.Bean<?>> apply(Set<jakarta.enterprise.inject.spi.Bean<?>> from)
      Specified by:
      apply in interface Function<Set<jakarta.enterprise.inject.spi.Bean<?>>,Set<jakarta.enterprise.inject.spi.Bean<?>>>
    • resolveAlternatives

      public Set<jakarta.enterprise.inject.spi.Bean<?>> resolveAlternatives(Set<jakarta.enterprise.inject.spi.Bean<?>> alternatives)
      If all the beans left are alternatives with a priority, then the container will select the alternative with the highest priority, and the ambiguous dependency is called resolvable.