Difference between revisions of "ADF Core Site Bean Config"

From ADF Docs
Jump to: navigation, search
(Overview)
(Architecture)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
== Overview ==
 
== Overview ==
The Core Site Bean Configuration file for the lightwire framework creates the objects and dependencies for the ADF.
+
The Core Site Bean Configuration file for the lightwire framework creates the objects and dependencies for the site.
 +
 
 +
The Bean Configuration file extends the [[Lightwire Config Extended Base|Lightwire Config Extended Base]] component file. 
 +
 
 +
The configuration file sets up the objects for all components and ADF library overrides at the site.
  
 
== Architecture ==
 
== Architecture ==
The Bean Configuration file extends the [[Lightwire Config Extended Base|Lightwire Config Extended Base]] component file.
+
* Create the CoreConfig object into the object factory.
 +
<source lang="java">
 +
/*
 +
* Load the singleton for the Core Config file
 +
*/
 +
addSingleton("ADF.core.Config", "CoreConfig");
 +
</source>
  
 +
* loadLocalComponents function loads the site level components into the object factory.
 +
<source lang="java">
 +
/*
 +
* Load the site level components into application.ADF space.
 +
* Recurse through the '/_cs_apps/components/' directory for each site.
 +
*/
 +
loadLocalComponents();
 +
</source>
  
 
[[Category:Core]]
 
[[Category:Core]]

Latest revision as of 21:02, 25 March 2010

Overview

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

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

The configuration file sets up the objects for all components and ADF library overrides at the site.

Architecture

  • Create the CoreConfig object into the object factory.
/*
 *	Load the singleton for the Core Config file
 */
addSingleton("ADF.core.Config", "CoreConfig");
  • loadLocalComponents function loads the site level components into the object factory.
/*
 * 	Load the site level components into application.ADF space.
 *		Recurse through the '/_cs_apps/components/' directory for each site.
 */
loadLocalComponents();