Package org.togglz.servlet.spi
Class ServletContextBeanFinder
- java.lang.Object
-
- org.togglz.servlet.spi.ServletContextBeanFinder
-
- All Implemented Interfaces:
BeanFinder
public class ServletContextBeanFinder extends Object implements BeanFinder
This implementation ofBeanFinderallows to register implementations of a given interface by setting a servlet context parameter. See the following configuration for an example how to register the implementation ofTogglzConfigso that this class is able to find it.<context-param> <param-name>org.togglz.core.config.TogglzConfig</param-name> <param-value>com.example.myapp.TogglzConfigImpl</param-value> </context-param>- Author:
- Christian Kaltepoth
-
-
Constructor Summary
Constructors Constructor Description ServletContextBeanFinder()
-
-
-
Method Detail
-
find
public <E> Collection<E> find(Class<E> clazz, Object context)
- Specified by:
findin interfaceBeanFinder
-
-