@Test public void testReferenceBeanProperties() { AbstractConfiguration override = new BaseConfiguration(); override.setProperty("model", "class=TestBean2, testField=${class=TestType}"); new LocallyConfiguredThread() { @Override public void run() { TestBean2 configuredBean = classInjector.injectConstructor(new ConfKey("model")); assertEquals(15, configuredBean.getTestField().getNumber()); } }.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);  }