|
JSF-Spring | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.mindmatters.faces.spring.factory.ValueBindingResolvingPropertyConfigurer
public final class ValueBindingResolvingPropertyConfigurer
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.
Constructor Summary | |
---|---|
ValueBindingResolvingPropertyConfigurer()
|
Method Summary | |
---|---|
void |
postProcessBeanFactory(ConfigurableListableBeanFactory beanFactoryToProcess)
Modify the application context's internal bean factory after its standard initialization. |
void |
setBeanFactory(BeanFactory beanFactory)
Callback that supplies the owning factory to a bean instance. |
void |
setBeanName(java.lang.String name)
Set the name of the bean in the bean factory that created this bean. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValueBindingResolvingPropertyConfigurer()
Method Detail |
---|
public void setBeanName(java.lang.String name)
Invoked after population of normal bean properties but before an
init callback such as InitializingBean.afterPropertiesSet()
or a custom init-method.
setBeanName
in interface BeanNameAware
name
- the name of the bean in the factory.
Note that this name is the actual bean name used in the factory, which may
differ from the originally specified name: in particular for inner bean
names, the actual bean name might have been made unique through appending
"#..." suffixes. Use the BeanFactoryUtils.originalBeanName(String)
method to extract the original bean name (without suffix), if desired.public void setBeanFactory(BeanFactory beanFactory)
Invoked after the population of normal bean properties but
before an initialization callback such as
InitializingBean.afterPropertiesSet()
or a custom init-method.
setBeanFactory
in interface BeanFactoryAware
beanFactory
- owning BeanFactory (may not be null
).
The bean can immediately call methods on the factory.BeanInitializationException
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactoryToProcess)
postProcessBeanFactory
in interface BeanFactoryPostProcessor
beanFactoryToProcess
- the bean factory used by the application context
|
JSF-Spring | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |