Interface TenantComponentLookup<T>

Type Parameters:
T - the type of the component instance
All Known Subinterfaces:
TenantComponentProvider<T>
All Known Implementing Classes:
TenantScopedCache
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface TenantComponentLookup<T>
Functional interface for looking up a component instance for a given tenant.
Since:
5.3.1
Author:
Jan Galinski
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the component instance for the given tenant.
  • Method Details

    • componentFor

      T componentFor(TenantDescriptor tenant)
      Returns the component instance for the given tenant.
      Parameters:
      tenant - the tenant to provide the component instance for
      Returns:
      the component instance belonging to the given tenant
      Throws:
      TenantNotResolvedException - if the given tenant cannot be resolved