Difference between revisions of "ADF Core Bean Config"

From ADF Docs
Jump to: navigation, search
(Created page with '== Overview == Core bean configuration file for the lightwire framework. This setup creates the singletons and dependencies for the ADF. == Architecture == The Bean Configurati…')
 
(Architecture)
 
(19 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
== Overview ==
 
== Overview ==
Core bean configuration file for the lightwire framework.  This setup creates the singletons and dependencies for the ADF.
+
The Core Bean Configuration file for the lightwire framework creates the objects and dependencies for the ADF.
 +
 
 +
The Bean Configuration file extends the [[Lightwire Config Extended Base]] component file.   
 +
 
 +
The configuration file sets up the objects for all components in the [[lib]] directory and initiates the [[App Bean Config|App Bean Config]] for the ADF applications.
  
 
== Architecture ==
 
== Architecture ==
The Bean Configuration file extends the [[Lightwire Config Extended Base|Lightwire Config Extended Base]] component file.   
+
* 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 objects for all the components in the argument directory.
 +
 
 +
<source lang="java">
 +
/*
 +
* 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");
 +
</source>
 +
* Create the CoreConfig object into the factory.
 +
<source lang="java">
 +
/*
 +
* Load the singleton for the Core Config file
 +
*/
 +
addSingleton("ADF.core.Config", "CoreConfig");
 +
</source>
 +
* loadADFAppBeanConfig function in the [[Lightwire Config Extended Base|Lightwire Config Extended Base]] locates all the [[App Bean Config|App Bean Config]] files under the [[Apps]] directory.
 +
<source lang="java">
 +
/*
 +
* Load the ADF application bean configuration files (appBeanConfig.cfc)
 +
  */
 +
loadADFAppBeanConfig();
 +
</source>
  
The configuration file works to setup factory objects for all the components in the [[lib]] directory and then initiate 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.
+
[[Category:Core]]
  /*
 
  * 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\", "ajax");
 
* Create the CoreConfig object into the factory.
 
  /*
 
  * Load the singleton for the Core Config file
 
  */
 
  addSingleton("ADF.core.Config", "CoreConfig");
 
* loadADFAppBeanConfig function in the [[Lightwire Config Extended Base|Lightwire Config Extended Base]] locates all the [[App Bean Config|App Bean Config]] files under the [[apps]] directory.
 
  /*
 
  * Load the ADF application bean configuration files (appBeanConfig.cfc)
 
  */
 
  loadADFAppBeanConfig();
 
* loadSiteAppBeanConfig function in the [[Lightwire Config Extended Base|Lightwire Config Extended Base]] locates all the [[App Bean Config|App Bean Config]] files under the sites.
 
  /*
 
  * Load the site level application bean configuration files (appBeanConfig.cfc)
 
  */
 
  loadSiteAppBeanConfig();
 
* loadSiteComponents function in the [[Lightwire Config Extended Base|Lightwire Config Extended Base]] locates the site components to include in the object factory.
 
  /*
 
  * Load the site level components into application.ADF space.
 
  *     Recurse through the '/_cs_apps/components/' directory for each site.
 
  */
 
  loadSiteComponents();
 

Latest revision as of 21:01, 25 March 2010

Overview

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

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

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

Architecture

  • 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 objects 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();