001 package com.softwarementors.extjs.djn.config; 002 003 import com.softwarementors.extjs.djn.StringUtils; 004 005 public class GlobalConfiguration { 006 public static class Parameters { 007 public static final String PROVIDERS_URL = "providersUrl"; 008 public static final String APIS = "apis"; 009 public static final String DEBUG = "debug"; 010 } 011 012 private String providersUrl; 013 private boolean debug; 014 015 public GlobalConfiguration( String providersUrl, boolean debug ) { 016 assert !StringUtils.isEmpty( providersUrl ); 017 018 this.providersUrl = providersUrl; 019 this.debug = debug; 020 } 021 022 public String getProvidersUrl() { 023 return this.providersUrl; 024 } 025 026 public boolean getDebug() { 027 return this.debug; 028 } 029 }