Interface BeanFinder


public interface BeanFinder
This SPI is used by Tooglz to lookup beans that are managed by bean containers like CDI or Spring. Currently Togglz uses this feature only for finding the TogglzConfig implementation.
Author:
Christian Kaltepoth
  • Method Summary

    Modifier and Type
    Method
    Description
    <E> Collection<E>
    find(Class<E> clazz, Object context)
    Retrieve a list of all beans of the given type.
  • Method Details

    • find

      <E> Collection<E> find(Class<E> clazz, Object context)
      Retrieve a list of all beans of the given type.
      Parameters:
      clazz - The type to lookup. In most cases this will be an interface.
      context - An optional context that may help the implementation to interact with the bean container. In Servlet environments this context object is the ServletContext.
      Returns:
      A list of beans, never null