Class IteratingLookup

java.lang.Object
eu.maveniverse.maven.mima.context.internal.IteratingLookup
All Implemented Interfaces:
Lookup

public final class IteratingLookup extends Object implements Lookup
A Lookup implementation that is able to iterate through several lookups, applying "first deliver wins" strategy.
Since:
2.4.10
  • Constructor Details

    • IteratingLookup

      public IteratingLookup(Lookup... lookups)
    • IteratingLookup

      public IteratingLookup(Collection<Lookup> lookups)
  • Method Details

    • lookup

      public <T> Optional<T> lookup(Class<T> type)
      Description copied from interface: Lookup
      Performs lookup for component with passed in type, and returns it as optional, never null.
      Specified by:
      lookup in interface Lookup
    • lookup

      public <T> Optional<T> lookup(Class<T> type, String name)
      Description copied from interface: Lookup
      Performs lookup for component with passed in type and name, and returns it as optional, never null.
      Specified by:
      lookup in interface Lookup