Package org.togglz.core.spi
Interface BeanFinder
-
public interface BeanFinderThis 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 theTogglzConfigimplementation.- Author:
- Christian Kaltepoth
-
-
Method Summary
All Methods Instance Methods Abstract Methods 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 Detail
-
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
-
-