Class SpringBeanELResolver
- java.lang.Object
- javax.el.ELResolver
- org.springframework.beans.factory.access.el.SpringBeanELResolver
- Direct Known Subclasses:
SimpleSpringBeanELResolver,SpringBeanFacesELResolver
public abstract class SpringBeanELResolver extends ELResolver
Unified ELELResolverthat delegates to a Spring BeanFactory, resolving name references to Spring-defined beans.- Since:
- 2.5.2
- Author:
- Juergen Hoeller
- See Also:
SpringBeanFacesELResolver
Field Summary
Fields inherited from class javax.el.ELResolver
RESOLVABLE_AT_DESIGN_TIME, TYPE
Constructor Summary
Constructors Constructor Description SpringBeanELResolver()
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract BeanFactorygetBeanFactory(ELContext elContext)Retrieve the Spring BeanFactory to delegate bean name resolution to.Class<?>getCommonPropertyType(ELContext elContext, Object base)Iterator<FeatureDescriptor>getFeatureDescriptors(ELContext elContext, Object base)Class<?>getType(ELContext elContext, Object base, Object property)ObjectgetValue(ELContext elContext, Object base, Object property)booleanisReadOnly(ELContext elContext, Object base, Object property)voidsetValue(ELContext elContext, Object base, Object property, Object value)Methods inherited from class javax.el.ELResolver
invoke
Constructor Detail
SpringBeanELResolver
public SpringBeanELResolver()
Method Detail
getValue
public Object getValue(ELContext elContext, Object base, Object property) throws ELException
- Specified by:
getValuein classELResolver- Throws:
ELException
getType
public Class<?> getType(ELContext elContext, Object base, Object property) throws ELException
- Specified by:
getTypein classELResolver- Throws:
ELException
setValue
public void setValue(ELContext elContext, Object base, Object property, Object value) throws ELException
- Specified by:
setValuein classELResolver- Throws:
ELException
isReadOnly
public boolean isReadOnly(ELContext elContext, Object base, Object property) throws ELException
- Specified by:
isReadOnlyin classELResolver- Throws:
ELException
getFeatureDescriptors
public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext elContext, Object base)
- Specified by:
getFeatureDescriptorsin classELResolver
getCommonPropertyType
public Class<?> getCommonPropertyType(ELContext elContext, Object base)
- Specified by:
getCommonPropertyTypein classELResolver
getBeanFactory
protected abstract BeanFactory getBeanFactory(ELContext elContext)
Retrieve the Spring BeanFactory to delegate bean name resolution to.- Parameters:
elContext- the current ELContext- Returns:
- the Spring BeanFactory (never
null)