spring-context

org.springframework.context.expression
Class BeanFactoryAccessor

java.lang.Object
  extended by org.springframework.context.expression.BeanFactoryAccessor
All Implemented Interfaces:
org.springframework.expression.PropertyAccessor

public class BeanFactoryAccessor
extends java.lang.Object
implements org.springframework.expression.PropertyAccessor

EL property accessor that knows how to traverse the beans of a Spring BeanFactory.

Since:
3.0
Author:
Juergen Hoeller, Andy Clement

Constructor Summary
BeanFactoryAccessor()
           
 
Method Summary
 boolean canRead(org.springframework.expression.EvaluationContext context, java.lang.Object target, java.lang.String name)
           
 boolean canWrite(org.springframework.expression.EvaluationContext context, java.lang.Object target, java.lang.String name)
           
 java.lang.Class[] getSpecificTargetClasses()
           
 org.springframework.expression.TypedValue read(org.springframework.expression.EvaluationContext context, java.lang.Object target, java.lang.String name)
           
 void write(org.springframework.expression.EvaluationContext context, java.lang.Object target, java.lang.String name, java.lang.Object newValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanFactoryAccessor

public BeanFactoryAccessor()
Method Detail

canRead

public boolean canRead(org.springframework.expression.EvaluationContext context,
                       java.lang.Object target,
                       java.lang.String name)
                throws org.springframework.expression.AccessException
Specified by:
canRead in interface org.springframework.expression.PropertyAccessor
Throws:
org.springframework.expression.AccessException

read

public org.springframework.expression.TypedValue read(org.springframework.expression.EvaluationContext context,
                                                      java.lang.Object target,
                                                      java.lang.String name)
                                               throws org.springframework.expression.AccessException
Specified by:
read in interface org.springframework.expression.PropertyAccessor
Throws:
org.springframework.expression.AccessException

canWrite

public boolean canWrite(org.springframework.expression.EvaluationContext context,
                        java.lang.Object target,
                        java.lang.String name)
                 throws org.springframework.expression.AccessException
Specified by:
canWrite in interface org.springframework.expression.PropertyAccessor
Throws:
org.springframework.expression.AccessException

write

public void write(org.springframework.expression.EvaluationContext context,
                  java.lang.Object target,
                  java.lang.String name,
                  java.lang.Object newValue)
           throws org.springframework.expression.AccessException
Specified by:
write in interface org.springframework.expression.PropertyAccessor
Throws:
org.springframework.expression.AccessException

getSpecificTargetClasses

public java.lang.Class[] getSpecificTargetClasses()
Specified by:
getSpecificTargetClasses in interface org.springframework.expression.PropertyAccessor

spring-context