Difference between revisions of "ADF Core Bean Config"

From ADF Docs
Jump to: navigation, search
(Overview)
(Architecture)
 
(One intermediate revision by the same user not shown)
Line 9: Line 9:
 
* 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.
 
* 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.
 
    
 
    
<code lang="java">
+
<source lang="java">
 
/*
 
/*
 
  * Build bean objects for all components in the ADF\LIB directory
 
  * Build bean objects for all components in the ADF\LIB directory
Line 16: Line 16:
 
  */
 
  */
 
loadADFLibComponents("ADF/lib/", "server");
 
loadADFLibComponents("ADF/lib/", "server");
</code>
+
</source>
 
* Create the CoreConfig object into the factory.
 
* Create the CoreConfig object into the factory.
<code lang="java">
+
<source lang="java">
 
/*
 
/*
 
  * Load the singleton for the Core Config file
 
  * Load the singleton for the Core Config file
 
  */
 
  */
 
addSingleton("ADF.core.Config", "CoreConfig");
 
addSingleton("ADF.core.Config", "CoreConfig");
</code>
+
</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.
 
* 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.
<code lang="java">
+
<source lang="java">
 
/*
 
/*
 
  * Load the ADF application bean configuration files (appBeanConfig.cfc)
 
  * Load the ADF application bean configuration files (appBeanConfig.cfc)
 
  */
 
  */
 
loadADFAppBeanConfig();
 
loadADFAppBeanConfig();
</code>
+
</source>
  
  
 
[[Category:Core]]
 
[[Category:Core]]

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