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 ELELResolver
that 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 BeanFactory
getBeanFactory(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)
Object
getValue(ELContext elContext, Object base, Object property)
boolean
isReadOnly(ELContext elContext, Object base, Object property)
void
setValue(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:
getValue
in classELResolver
- Throws:
ELException
getType
public Class<?> getType(ELContext elContext, Object base, Object property) throws ELException
- Specified by:
getType
in classELResolver
- Throws:
ELException
setValue
public void setValue(ELContext elContext, Object base, Object property, Object value) throws ELException
- Specified by:
setValue
in classELResolver
- Throws:
ELException
isReadOnly
public boolean isReadOnly(ELContext elContext, Object base, Object property) throws ELException
- Specified by:
isReadOnly
in classELResolver
- Throws:
ELException
getFeatureDescriptors
public Iterator<FeatureDescriptor> getFeatureDescriptors(ELContext elContext, Object base)
- Specified by:
getFeatureDescriptors
in classELResolver
getCommonPropertyType
public Class<?> getCommonPropertyType(ELContext elContext, Object base)
- Specified by:
getCommonPropertyType
in 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
)