The Spring Framework

## org.springframework.beans.factory.access.el
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 javax.el.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

Fields inherited from class javax.el.ELResolver
`RESOLVABLE_AT_DESIGN_TIME, TYPE`

Constructor Summary
`SpringBeanELResolver()`

Method Summary
`protected abstract BeanFactory` `getBeanFactory(javax.el.ELContext elContext)` Retrieve the Spring BeanFactory to delegate bean name resolution to.
`Class<?>` `getCommonPropertyType(javax.el.ELContext elContext, Object base)`
`Iterator<FeatureDescriptor>` `getFeatureDescriptors(javax.el.ELContext elContext, Object base)`
`Class<?>` `getType(javax.el.ELContext elContext, Object base, Object property)`
`Object` `getValue(javax.el.ELContext elContext, Object base, Object property)`
`boolean` `isReadOnly(javax.el.ELContext elContext, Object base, Object property)`
`void` `setValue(javax.el.ELContext elContext, Object base, Object property, Object value)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### logger

    protected final Log logger

  Logger available to subclasses

Constructor Detail

### SpringBeanELResolver

    public SpringBeanELResolver()

Method Detail

### getValue

    public Object getValue(javax.el.ELContext elContext,
                           Object base,
                           Object property)
                    throws javax.el.ELException

  Specified by:
    `getValue` in class `javax.el.ELResolver`
  Throws:
    `javax.el.ELException`

### getType

    public Class<?> getType(javax.el.ELContext elContext,
                            Object base,
                            Object property)
                     throws javax.el.ELException

  Specified by:
    `getType` in class `javax.el.ELResolver`
  Throws:
    `javax.el.ELException`

### setValue

    public void setValue(javax.el.ELContext elContext,
                         Object base,
                         Object property,
                         Object value)
                  throws javax.el.ELException

  Specified by:
    `setValue` in class `javax.el.ELResolver`
  Throws:
    `javax.el.ELException`

### isReadOnly

    public boolean isReadOnly(javax.el.ELContext elContext,
                              Object base,
                              Object property)
                       throws javax.el.ELException

  Specified by:
    `isReadOnly` in class `javax.el.ELResolver`
  Throws:
    `javax.el.ELException`

### getFeatureDescriptors

    public Iterator<FeatureDescriptor> getFeatureDescriptors(javax.el.ELContext elContext,
                                                             Object base)

  Specified by:
    `getFeatureDescriptors` in class `javax.el.ELResolver`

### getCommonPropertyType

    public Class<?> getCommonPropertyType(javax.el.ELContext elContext,
                                          Object base)

  Specified by:
    `getCommonPropertyType` in class `javax.el.ELResolver`

### getBeanFactory

    protected abstract BeanFactory getBeanFactory(javax.el.ELContext elContext)

  Retrieve the Spring BeanFactory to delegate bean name resolution to.

  Parameters:
    `elContext` - the current ELContext
  Returns:
    the Spring BeanFactory (never `null`)

The Spring Framework

Copyright © 2002-2008 The Spring Framework.