--- /dev/null
+package de.juplo.demos.multiplebeans;
+
+import org.springframework.context.ApplicationContextInitializer;
+import org.springframework.context.ConfigurableApplicationContext;
+import org.springframework.stereotype.Component;
+
+public class MultipleBeansApplicationContextInitializer
+ implements
+ ApplicationContextInitializer<ConfigurableApplicationContext> {
+
+ @Override
+ public void initialize(ConfigurableApplicationContext context) {
+ MultipleBeansProperties properties = context.getBean(MultipleBeansProperties.class);
+ System.out.println(properties.project);
+ }
+}