I have a Standalone Application, this application calculates a value (Property) and then starts a Spring Context. My question is how can I add that calculated property to th
Your myCalculatedProperty must be contained within one of your properties file (which are injected by the Spring propertyPlaceholderConfigurer).
EDIT : simply use the setter, something like this
public static void main(final String[] args) {
String myCalculatedProperty = magicFunction();
AbstractApplicationContext appContext =
new ClassPathXmlApplicationContext("applicationContext.xml");
Process p = appContext.getBean(Process.class);
p.setMyCalculatedProperty(myCalculatedProperty);
p.start();
}