/*
 * Licensed to the Apache Software Foundation (ASF) under one
 *  or more contributor license agreements.  See the NOTICE file
 *  distributed with this work for additional information
 *  regarding copyright ownership.  The ASF licenses this file
 *  to you under the Apache License, Version 2.0 (the
 *  "License"); you may not use this file except in compliance
 *  with the License.  You may obtain a copy of the License at
 *
 *	http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 *
 */

/**
 * This is the default Xap configuration file that will be used to specified 
 * different runtime settings of the Xap application. Xap application provide
 * for paramenter overriding in the following way.
 *
 * The default values for an application come from this file. When an application is loaded
 * the developer can specify a configuration object to the Xap.createApplication method.
 * any value in that object will override these parameters (Array parameters will NOT be merged).
 * If the developer has specified page scaning then the Xap attributes on the HTML element
 * will then override the values supplied to the Xap.createApplication. Each HTML element that is
 * found is treated as a seperate XAP application.
 *
 * Parameter Override workflow:
 * 1) This configuration file.
 * 2a) The config object specified to the Xap.createApplication method.
 * 2b) Any xap parameters embeded in a html element found during page scanning.
 *
 * For more information on using the JSON format go to www.json.org.
 */
{
    /**
     * This is the default name for the application.  Users can access this
     * application by using the Xap.applications["myApplicationName"]
     *
     * Accepted Values: can be null, undefined, or any String.
     */
	applicationName: "xapApplication",
	/**
	 * This is the default starting page for the application.  When the application is 
	 * started it will load this page to create the applications user interface.
     *
     * Accepted Values: can be null, undefined, or any url the is an acceptable Xal document.
	 */
	startPage: "index.xal",
	/**
	 * This is the default context for the application. When resources are loaded either by
	 * using the request service or as a event handler.
     *
     * Accepted Values: The root of the application as compared to the start web page.
	 */
	context: "./",
	/**
	 * This is the default srcPath for the application. When resources are loaded either by
	 * using the request service or as a event handler.
     *
     * Accepted Values: The location of the xap src as compared to the start web page.
	 */
	srcPath: "./xap/",
	/**
	 * This is the default toolkit type.
     *
     * Accepted Values: any defined toolkit.
	 */
	toolkitType: "dojo",
	/**
	 * This is the default list of plugin classes that will be loaded.  Place any class that needs
	 * to be loaded into during initialization.
     *
     * Accepted Values: can be null, undefined, or any Array of class names.
	 */
    pluginClasses: [
        "xap.xml.xmodify.XmodifyNamespaceHandler",
        "xap.macro.MacroNamespaceHandler"
        ],
	/**
	 * This is the default list of plugin classes that will be loaded.  Place any class that needs
	 * to be loaded into during initialization. Plugin classes need to implement the "pluginLoaded"
	 * method.
     *
     * Accepted Values: can be null, undefined, or any Array of class names.
	 */
    pluginFiles: null,
	/**
	 * This is the default id of the html element that will host the Xap application.
	 * If the element is null or undefined then the root is assumed to be the body.
     *
     * Accepted Values: can be null, undefined, or id of the element that will be the 
     *                  root of the application.
	 */
    element: null,
	/**
	 * The loggingEnabled value determines whether or not logging is turned on in the Xap client.
	 * if logging is enabled then a new window will open that has the log produced by the Xap client
	 * during runtime.  It is not recommended to close the logging window during execution.
     *
     * Accepted Values: can be null, undefined, or true / false.
	 */
	logging: false
}
