Phoenix DLL Phase Plug-In

Phoenix supports modular compiler phase design. It allows us to select phases that we want invoked including core processing phases in Phoenix framework. In addition, Phoenix supports the ability to customize the phases invoked via a managed DLL plug-in. The DLL phase plug-in can manipulate the phase list as it sees fit: inject new phases, remove or replace existing ones, and so on. Phoenix execution engine pre-scans the control list for any DLL plug-ins; if the control list contains plug-ins, the engine loads the associated DLLs to extend the infrastructure.

There are two Phoenix entry points required for a DLL phase plug-in:
-
RegisterObjects
- BuildPhases

These methods must be contained in a public class derived from Phx::PlugIn. Here is the basic template:

public class MyPhxPlugIn : Phx.PlugIn
{
   public override void
   RegisterObjects()
   {
   }

   public override void
   BuildPhases
   (
      Phx.PhasesContainer obj
   )
   {
   }
}

Share this post: | | | |
Published Tuesday, August 22, 2006 2:44 AM by Risman Adnan Mattotorang

Comments

No Comments

Leave a Comment

(required) 
(required) 
(optional)
(required) 

Enter the numbers above: