<mode> tag

Description

The mode tag controls how Reactor generates project files.  Options are:

 

always - Every time an object is instantiated Reactor generates the project files, overwriting any that already exist.  This is the slowest possible mode and is primarily intended for development of the Reactor framework.

 

development - When an object is instantiated Reactor checks to see if either the object's configuration or database structure has changed.  If so, the object's project file is generated and existing files are overwritten.  This is faster than always and slower than production modes.

 

production - When production mode Reactor trusts any existing files, even if the object's configuration has changed or the object's database structure has changed.  If a file does not exist Reactor will generated it.  This is the fastest setting and is essential for production applications.

 

No mater what the mode is set to, Reactor will never overwrite customizable files that already exist.  

Attributes

Attribute

Required

Description

value

Yes

Sets the mode reactor is running in.  Options are:

  • always - project files are always regenerated

  • development - project files are sometimes regenerated

  • production - project files are not regenerated

Child Tags

None

Example

<reactor>
 <config>
   <project value="Scratch" />
   <dsn value="scratch" />
   <type value="mssql" />
   <mapping value="/reactorData" />
   <mode value="always" />
 </config>
</reactor>