SourceForge.net Logo

de.mindmatters.faces.spring.factory.support
Class ValueBindingResolvingPropertyConfigurer

java.lang.Object
  extended byde.mindmatters.faces.spring.factory.support.ValueBindingResolvingPropertyConfigurer
All Implemented Interfaces:
BeanFactoryAware, BeanFactoryPostProcessor, BeanNameAware

public final class ValueBindingResolvingPropertyConfigurer
extends java.lang.Object
implements BeanNameAware, BeanFactoryAware, BeanFactoryPostProcessor

A property configurer that resolves value bindings in bean property values of context definitions.

The syntax follows the JSF EL style:

 #{...}
 

Example XML context definition:

 <bean id="myPerson" class="foo.Person">
   <property name="firstname"><value>John</value></property>
   <property name="lastname"><value>Doe</value></property>
 </bean>
                             
 <bean id="info" class="foo.PersonInfo">
   <property name="firstnameOfPerson"><value>#{myPerson.firstname}</value></property>
   <property name="lastnameOfPerson"><value>#{myPerson.lastname}</value></property>
   <property name="hasPersonSecondname"><value>#{myPerson.secondname != null}</value></property>
 </bean>
 

ValueBindingResolvingPropertyConfigurer checks simple property values, lists, maps, and props.

Author:
Andreas Kuhrwahl

Constructor Summary
ValueBindingResolvingPropertyConfigurer()
           
 
Method Summary
 void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactoryToProcess)
          
 void setBeanFactory(BeanFactory beanFactory)
          
 void setBeanName(java.lang.String name)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueBindingResolvingPropertyConfigurer

public ValueBindingResolvingPropertyConfigurer()
Method Detail

setBeanName

public void setBeanName(java.lang.String name)

Specified by:
setBeanName in interface BeanNameAware

setBeanFactory

public void setBeanFactory(BeanFactory beanFactory)

Specified by:
setBeanFactory in interface BeanFactoryAware

postProcessBeanFactory

public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactoryToProcess)

Specified by:
postProcessBeanFactory in interface BeanFactoryPostProcessor

SourceForge.net Logo

Copyright © 2002 mindmatters GmbH & Co. KG