I have this applicationContext.xml
file, which I want to express as a spring @Configuration
component. How can I do that? Is there a section in the official spring docs about how to convert XML configurations into Java-based configuration?
Following XML snippet is from this project which implements a custom ViewScope for Spring. In order to use its ViewScope implementation I have to add this configuration in to my applicationContext.xml
, But I want to express this configuration in Java.
<bean class="org.springframework.beans.factory.config.CustomScopeConfigurer">
<property name="scopes">
<map>
<entry key="view">
<bean class="com.github.jneat.jsf.ViewScope"/>
</entry>
</map>
</property>
</bean>