Consider the following DialgBean.java class, which defines the properties of a dialog box on a web page. Below is the class and its definition of bean
public class DialogBean{
private int height;
public void setHeight(int height)
...
}
<bean id="dialogBean" class="org.springhelp.DialogBean">
<property name="height" value="${dialogBean.height}"/>
...
</bean>
In the above example, you can see that the DialogBean height property is selected by PropertyPlaceholderConfigurer.
The problem is that the application I'm working on supports multiple clients, and most clients have separate requirements for the dialog box height parameter. Therefore, I can’t just pull the height parameter from one properties file.
So, how do I insert a height parameter for a specific client in DialogBean using the bean definition described above, where the client ID is stored as an option in the java.util.Locale object?
bean factory , Locale?