Interface Lookup

All Known Implementing Classes:
IteratingLookup

public interface Lookup
A simple "lookup" that allows to lookup various components. Lookup shares lifecycle with Context.

Note: this component offers access to Resolver internals, but it is up to caller to know really how to use this feature (for example due compatibility reasons). Ideally, you do not want to use this, or use it only in some "advanced scenarios".

Since:
2.4.10
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> Optional<T>
    lookup(Class<T> type)
    Performs lookup for component with passed in type, and returns it as optional, never null.
    <T> Optional<T>
    lookup(Class<T> type, String name)
    Performs lookup for component with passed in type and name, and returns it as optional, never null.
  • Method Details

    • lookup

      <T> Optional<T> lookup(Class<T> type)
      Performs lookup for component with passed in type, and returns it as optional, never null.
    • lookup

      <T> Optional<T> lookup(Class<T> type, String name)
      Performs lookup for component with passed in type and name, and returns it as optional, never null.