@Test public void testObjectOverrides() { update("object.a.pattern", "a", "object.a.limit", "200", "object.b.pattern", "b", "object.b.limit", "300" ); assertThat(resolver.resolve(new MyObject("a")).getLimit()).isEqualTo(200); assertThat(resolver.resolve(new MyObject("b")).getLimit()).isEqualTo(300); assertThat(resolver.resolve(new MyObject("x")).getLimit()).isEqualTo(100); }
@Override public CONFIG resolve(OBJECT object) { return delegate.resolve(object); }
PeriodicallyRefreshingObjectConfigurationResolver implements ObjectConfigurationResolver<OBJECT, CONFIG> { @Override public CONFIG resolve(OBJECT object) { return delegate.resolve(object); } }
PeriodicallyRefreshingObjectConfigurationResolver implements ObjectConfigurationResolver<OBJECT, CONFIG> { @Override public CONFIG resolve(OBJECT object) { return delegate.resolve(object); } PeriodicallyRefreshingObjectConfigurationResolver(Config configuration,
                                                      Function<OBJECT, String> selectorFieldAccessor,
                                                      Function<String, CONFIG> dynamicProxyFactory,
                                                      CONFIG defaultConfig); }
PeriodicallyRefreshingObjectConfigurationResolver implements ObjectConfigurationResolver<OBJECT, CONFIG> { @Override public CONFIG resolve(OBJECT object) { return delegate.resolve(object); } PeriodicallyRefreshingObjectConfigurationResolver(Config configuration,
                                                      Function<OBJECT, String> selectorFieldAccessor,
                                                      Function<String, CONFIG> dynamicProxyFactory,
                                                      CONFIG defaultConfig); @Override CONFIG resolve(OBJECT object); }
PeriodicallyRefreshingObjectConfigurationResolver implements ObjectConfigurationResolver<OBJECT, CONFIG> { @Override public CONFIG resolve(OBJECT object) { return delegate.resolve(object); } PeriodicallyRefreshingObjectConfigurationResolver(Config configuration,
                                                      Function<OBJECT, String> selectorFieldAccessor,
                                                      Function<String, CONFIG> dynamicProxyFactory,
                                                      CONFIG defaultConfig); @Override CONFIG resolve(OBJECT object);  }