Difference between revisions of "ADF Core Bean Config"

From ADF Docs
Jump to: navigation, search
(Architecture)
Line 7: Line 7:
 
The configuration file sets up the factory objects for all components in the [[lib]] directory and initiates the [[App Bean Config|App Bean Config]] for the custom applications.
 
The configuration file sets up the factory objects for all components in the [[lib]] directory and initiates the [[App Bean Config|App Bean Config]] for the custom applications.
 
* loadADFLibComponents function in the [[Lightwire Config Extended Base|Lightwire Config Extended Base]].  The parameters are the ADF directory to locate all components and the directories to exclude.  This function locates and creates singletons for all the components in the argument directory.
 
* loadADFLibComponents function in the [[Lightwire Config Extended Base|Lightwire Config Extended Base]].  The parameters are the ADF directory to locate all components and the directories to exclude.  This function locates and creates singletons for all the components in the argument directory.
   /*
+
    
  * Build bean objects for all components in the ADF\LIB directory
+
<code lang="html">
  * Argument 1 = Directory to recurse for component files
+
/*
  * Argument 2 = Director names to exclude
+
* Build bean objects for all components in the ADF\LIB directory
  */
+
* Argument 1 = Directory to recurse for component files
  loadADFLibComponents("ADF\lib\", "ajax");
+
* Argument 2 = Director names to exclude
 +
*/
 +
loadADFLibComponents("ADF/lib/", "server");
 +
</code>
 
* Create the CoreConfig object into the factory.
 
* Create the CoreConfig object into the factory.
 
   /*
 
   /*

Revision as of 13:47, 24 March 2010

Overview

The Core Bean Configuration file for the lightwire framework creates the singletons and dependencies for the ADF.

Architecture

The Bean Configuration file extends the Lightwire Config Extended Base component file.

The configuration file sets up the factory objects for all components in the lib directory and initiates the App Bean Config for the custom applications.

  • loadADFLibComponents function in the Lightwire Config Extended Base. The parameters are the ADF directory to locate all components and the directories to exclude. This function locates and creates singletons for all the components in the argument directory.

/*

*	Build bean objects for all components in the ADF\LIB directory
*		Argument 1 = Directory to recurse for component files
*		Argument 2 = Director names to exclude
*/

loadADFLibComponents("ADF/lib/", "server");

  • Create the CoreConfig object into the factory.
 /*
  *	Load the singleton for the Core Config file
  */
 addSingleton("ADF.core.Config", "CoreConfig");
 /*
  *	Load the ADF application bean configuration files (appBeanConfig.cfc)
  */
 loadADFAppBeanConfig();
 /*
  *	Load the site level application bean configuration files (appBeanConfig.cfc)
  */
 loadSiteAppBeanConfig();
 /*
  * 	Load the site level components into application.ADF space.
  *	     Recurse through the '/_cs_apps/components/' directory for each site.
  */
 loadSiteComponents();