public class LazyBeanNameFinder extends Object
Class implementing lazy resolving of bean names.
This class is typically created once and is than supplied to LazyExpression instances in the
LazyExpression.LazyExpression(LazyBeanNameFinder, Class, String) constructor.
| Constructor and Description |
|---|
LazyBeanNameFinder(ServletContext servletContext)
Creates a new
LazyBeanNameFinder. |
public LazyBeanNameFinder(ServletContext servletContext)
LazyBeanNameFinder. The constructor will find all implementations of
ELBeanNameResolver by using the ServiceLoader mechanism.servletContext - The servlet contextpublic String findBeanName(Class<?> clazz) throws IllegalStateException
ELBeanNameResolver. This method will either return the resolved name or throw an
IllegalStateException, if no resolver knows the name of the bean.clazz - The class of the beanIllegalStateException - If the name of the bean cannot be resolvedCopyright © 2014 OCPsoft. All Rights Reserved.