org.springframework.beans.factory.access.el
Class SpringBeanELResolver
java.lang.Object
ELResolver
org.springframework.beans.factory.access.el.SpringBeanELResolver
- Direct Known Subclasses:
- SimpleSpringBeanELResolver, SpringBeanFacesELResolver
public abstract class SpringBeanELResolver
- extends ELResolver
Unified EL ELResolver
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 |
protected Log |
logger
Logger available to subclasses |
Method Summary |
protected abstract BeanFactory |
getBeanFactory(ELContext elContext)
Retrieve the Spring BeanFactory to delegate bean name resolution to. |
java.lang.Class<?> |
getCommonPropertyType(ELContext elContext,
java.lang.Object base)
|
java.util.Iterator<java.beans.FeatureDescriptor> |
getFeatureDescriptors(ELContext elContext,
java.lang.Object base)
|
java.lang.Class<?> |
getType(ELContext elContext,
java.lang.Object base,
java.lang.Object property)
|
java.lang.Object |
getValue(ELContext elContext,
java.lang.Object base,
java.lang.Object property)
|
boolean |
isReadOnly(ELContext elContext,
java.lang.Object base,
java.lang.Object property)
|
void |
setValue(ELContext elContext,
java.lang.Object base,
java.lang.Object property,
java.lang.Object value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final Log logger
- Logger available to subclasses
SpringBeanELResolver
public SpringBeanELResolver()
getValue
public java.lang.Object getValue(ELContext elContext,
java.lang.Object base,
java.lang.Object property)
throws ELException
- Throws:
ELException
getType
public java.lang.Class<?> getType(ELContext elContext,
java.lang.Object base,
java.lang.Object property)
throws ELException
- Throws:
ELException
setValue
public void setValue(ELContext elContext,
java.lang.Object base,
java.lang.Object property,
java.lang.Object value)
throws ELException
- Throws:
ELException
isReadOnly
public boolean isReadOnly(ELContext elContext,
java.lang.Object base,
java.lang.Object property)
throws ELException
- Throws:
ELException
getFeatureDescriptors
public java.util.Iterator<java.beans.FeatureDescriptor> getFeatureDescriptors(ELContext elContext,
java.lang.Object base)
getCommonPropertyType
public java.lang.Class<?> getCommonPropertyType(ELContext elContext,
java.lang.Object base)
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
)