Package com.cedarsoft.configuration

Examples of com.cedarsoft.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() {
      @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() {
      @Override
      @NotNull
      public <T> T getDefaultValue( @NotNull @NonNls String key, @NotNull Class<T> type ) {
        return type.cast( defaultValue );
      }
View Full Code Here

   * @param type          a {@link Class} object.
   * @param key           a {@link String} object.
   * @param defaultValue  a T object.
   */
  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

   * @param type          a {@link Class} object.
   * @param key           a {@link String} object.
   * @param defaultValue  a T object.
   */
  public ConfigurationAccess( @Nonnull Configuration configuration, @Nonnull Class<? extends T> type, @Nonnull String key, @Nonnull final T defaultValue ) {
    this( configuration, type, key, new DefaultValueProvider() {
      @Override
      @Nonnull
      public <T> T getDefaultValue( @Nonnull String key, @Nonnull Class<T> type ) {
        return type.cast( defaultValue );
      }
View Full Code Here

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

TOP

Related Classes of com.cedarsoft.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.