Thursday, June 17, 2010

The Application Server Script

This is the script in the Application object. It's used to call the business service (empty method) which will create an instance of the framework (Class_Main) in its declaration section. The Business Service is cached, so we only get one instance of the Framework in memory (per session).`


var oBS:Service = this.GetService("My Framework");
oBS.InvokeMethod ("BuildFramework", NewPropertySet(), NewPropertySet());

function FrameworkHandle()
{
/*------------------------------------------------------------------------------------------
Created: 04/01/2010
Description: Return a reference to the Framework object built by BS
------------------------------------------------------------------------------------------*/
return this.GetService("My Framework").frameworkHandle();
}

1 comment: