Package com.cedarsoft.utils.configuration

Examples of com.cedarsoft.utils.configuration.DefaultValueProvider


  private final DefaultValueProvider defaultValueProvider;
  @NotNull
  private final Configuration configuration;

  public ConfigurationAccess( @NotNull Configuration configuration, @NotNull Class<? extends T> type, @NotNull @NonNls String key, @NotNull final T defaultValue ) {
    this( configuration, type, key, new DefaultValueProvider() {
      @Override
      @NotNull
      public <T> T getDefaultValue( @NotNull @NonNls String key, @NotNull Class<T> type ) {
        return type.cast( defaultValue );
      }
View Full Code Here


  private final DefaultValueProvider defaultValueProvider;
  @NotNull
  private final Configuration configuration;

  public ConfigurationAccess( @NotNull Configuration configuration, @NotNull Class<? extends T> type, @NotNull @NonNls String key, @NotNull final T defaultValue ) {
    this( configuration, type, key, new DefaultValueProvider() {
      @NotNull
      public <T> T getDefaultValue( @NotNull @NonNls String key, @NotNull Class<T> type ) {
        return type.cast( defaultValue );
      }
    } );
View Full Code Here

TOP

Related Classes of com.cedarsoft.utils.configuration.DefaultValueProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.