@Test public void testGlobalBeanProperties() { AbstractConfiguration override = new BaseConfiguration(); override.setProperty("global.x", 1); override.setProperty("global.name", "testProperty"); override.setProperty("models.0", "@TestBean1, x=${global.x}, name=${global.name}"); new LocallyConfiguredThread() { @Override public void run() { TestBean1 configuredBean = classInjector.injectConstructor(new ConfKey("models.0")); assertEquals(1, configuredBean.getX()); assertEquals("testProperty", configuredBean.getName()); } }.withOverriddenConfiguration(override).execute(); }
public <T> T injectConstructor(ConfigurationKey key) { return injectConstructor(new ConfigurationProperties(key)); }
ClassInjector { public <T> T injectConstructor(ConfigurationKey key) { return injectConstructor(new ConfigurationProperties(key)); } }
ClassInjector { public <T> T injectConstructor(ConfigurationKey key) { return injectConstructor(new ConfigurationProperties(key)); } ClassInjector();  ClassInjector(ClassResolver resolver); }
ClassInjector { public <T> T injectConstructor(ConfigurationKey key) { return injectConstructor(new ConfigurationProperties(key)); } ClassInjector();  ClassInjector(ClassResolver resolver); Sequence<T> injectMultipleConstructors(ConfigurationKey key); T injectConstructor(ConfigurationKey key); T injectConstructor(ConfigurationProperties properties); }
ClassInjector { public <T> T injectConstructor(ConfigurationKey key) { return injectConstructor(new ConfigurationProperties(key)); } ClassInjector();  ClassInjector(ClassResolver resolver); Sequence<T> injectMultipleConstructors(ConfigurationKey key); T injectConstructor(ConfigurationKey key); T injectConstructor(ConfigurationProperties properties);  }