I am new to Spring framework and confused how to load properties of a bean ( Instance variables of a bean ) dynamically . Spring expects to use xml based configuration for declaring all the beans and dependencies between beans . For example ,
public class Bean1
{
int value;
public void setValue(int thisValue)
{
value = thisValue;
}
}
<bean id = "LibraryMgmtBean" class = "Bean1">
<property name = "value" Value = "SampleString"/> </bean>
But here we are mentioning all the properties of a bean statically . But , what if I want to supply these values dynamically . I mean , I may get values from a JSP page from weblayer and should pass to this bean . And as all beans are declard in XML this way , how Spring Injects dependecies of other beans when all bean properties are supplied dynamically ?