@Test public void testDefault() { MyConfigurationManager myManager = new MyConfigurationManager(); DefaultTypedConfigurationManager manager = new DefaultTypedConfigurationManager(myManager); System.out.println(manager.getProperty("").value()); System.out.println(manager.getProperty("bool", BooleanParser.DEFAULT).typedValue().booleanValue()); System.out.println(manager.getProperty("int", IntegerParser.DEFAULT).typedValue().intValue()); System.out.println(manager.getProperty("long", LongParser.DEFAULT).typedValue().intValue()); System.out.println(manager.getProperty("list", ListParser.DEFAULT).typedValue()); System.out.println(manager.getProperty("map", MapParser.DEFAULT).typedValue()); }
@Override public <T> TypedProperty<T> getProperty(String key, ValueParser<T> valueParser) { return new DefaultTypedProperty<T>(getProperty(key), valueParser); }
DefaultTypedConfigurationManager extends ConfigurationManagerWrapper implements TypedConfigurationManager { @Override public <T> TypedProperty<T> getProperty(String key, ValueParser<T> valueParser) { return new DefaultTypedProperty<T>(getProperty(key), valueParser); } }
DefaultTypedConfigurationManager extends ConfigurationManagerWrapper implements TypedConfigurationManager { @Override public <T> TypedProperty<T> getProperty(String key, ValueParser<T> valueParser) { return new DefaultTypedProperty<T>(getProperty(key), valueParser); } DefaultTypedConfigurationManager(ConfigurationManager manager); }
DefaultTypedConfigurationManager extends ConfigurationManagerWrapper implements TypedConfigurationManager { @Override public <T> TypedProperty<T> getProperty(String key, ValueParser<T> valueParser) { return new DefaultTypedProperty<T>(getProperty(key), valueParser); } DefaultTypedConfigurationManager(ConfigurationManager manager); @Override TypedProperty<T> getProperty(String key, ValueParser<T> valueParser); }
DefaultTypedConfigurationManager extends ConfigurationManagerWrapper implements TypedConfigurationManager { @Override public <T> TypedProperty<T> getProperty(String key, ValueParser<T> valueParser) { return new DefaultTypedProperty<T>(getProperty(key), valueParser); } DefaultTypedConfigurationManager(ConfigurationManager manager); @Override TypedProperty<T> getProperty(String key, ValueParser<T> valueParser);  }