Difference between revisions of "ADF Core"

From ADF Docs
Jump to: navigation, search
(Created page with '== Overview == Directory for the core components that implement the lightwire object factory. == Components == * Core.cfc - Initialization component for the ADF. This code crea…')
 
Line 3: Line 3:
  
 
== Components ==
 
== Components ==
* Core.cfc - Initialization component for the ADF.  This code creates the factory object into server space.  The configuration of the object factory is controlled through the [[ADF:Core Bean Config|Core Bean Config]].   
+
* Core.cfc - Initialization component for the ADF.  This code creates the factory object into server space.  The configuration of the object factory is controlled through the [[Core Bean Config|Core Bean Config]].   
 
   <cfscript>
 
   <cfscript>
 
     server.ADF = StructNew();
 
     server.ADF = StructNew();
Line 18: Line 18:
  
 
== Lightwire ==
 
== Lightwire ==
* BeanConfig.cfc - [[ADF:Core Bean Config|Core Bean Config]] component that configures the factory object.   
+
* BeanConfig.cfc - [[Core Bean Config|Core Bean Config]] component that configures the factory object.   
* LightWireConfigExtendedBase.cfc - [[ADF:Lightwire Config Extended Base|Lightwire Config Extended Base]] component is extended from the [[ADF:Core Bean Config|Core Bean Config]] and provides automation functions for configuring the factory.
+
* LightWireConfigExtendedBase.cfc - [[Lightwire Config Extended Base|Lightwire Config Extended Base]] component is extended from the [[Core Bean Config|Core Bean Config]] and provides automation functions for configuring the factory.
  
 
== Factory Object Configuration ==
 
== Factory Object Configuration ==
The ADF core initialization is controlled through the [[ADF:Core|Core]].  This component loads the object factory into server space.
+
The ADF core initialization is controlled through the [[Core|Core]].  This component loads the object factory into server space.
  
The ADF factory objects are configured through the [[ADF:Core Bean Config|Core Bean Config]].
+
The ADF factory objects are configured through the [[Core Bean Config|Core Bean Config]].

Revision as of 03:01, 22 November 2009

Overview

Directory for the core components that implement the lightwire object factory.

Components

  • Core.cfc - Initialization component for the ADF. This code creates the factory object into server space. The configuration of the object factory is controlled through the Core Bean Config.
 <cfscript>
   server.ADF = StructNew();
   server.ADF.dependencyStruct = StructNew();
   // Build object factory 
   server.ADF.beanConfig = createObject("component","ADF.core.lightwire.BeanConfig").init();
   server.ADF.objectFactory = StructNew();
   server.ADF.objectFactory = createObject("component","ADF.thirdParty.lightwire.LightWire").init(server.ADF.beanConfig);
   // Build the environment variables
   configEnvironment();
 </cfscript>
  • Base.cfc - Root base component for the ADF. Extended by the AppBase component (AppBase.cfc) to perform get operations for a factory object.
  • AppBase.cfc - Application base component. Extends the Base component and is extended by the custom application App components. Provides a layer between the ADF and the custom application.

Lightwire

Factory Object Configuration

The ADF core initialization is controlled through the Core. This component loads the object factory into server space.

The ADF factory objects are configured through the Core Bean Config.