/* * This is the primary initialization method in the Velocity * Runtime. The systems that are setup/initialized here are * as follows: * * <ul> * <li>Logging System</li> * <li>ResourceManager</li> * <li>Parser Pool</li> * <li>Global Cache</li> * <li>Static Content Include System</li> * <li>Velocimacro System</li> * </ul> */ public void init() { lock (this) { if (initialized == false) { info("************************************************************** "); info("Starting " + Assembly.GetExecutingAssembly().GetName()); info("RuntimeInstance initializing."); initializeProperties(); initializeLogger(); initializeResourceManager(); initializeDirectives(); initializeParserPool(); initializeIntrospection(); /* * initialize the VM Factory. It will use the properties * accessable from Runtime, so keep this here at the end. */ vmFactory.initVelocimacro(); info("NVelocity successfully started."); initialized = true; } } }
/* * This is the primary initialization method in the Velocity * Runtime. The systems that are setup/initialized here are * as follows: * * <ul> * <li>Logging System</li> * <li>ResourceManager</li> * <li>Parser Pool</li> * <li>Global Cache</li> * <li>Static Content Include System</li> * <li>Velocimacro System</li> * </ul> */ public virtual void init() { lock (this) { if (initialized == false) { info("************************************************************** "); info("Starting NVelocity v0.4.1"); info("RuntimeInstance initializing."); initializeProperties(); initializeLogger(); initializeResourceManager(); initializeDirectives(); initializeParserPool(); /* * initialize the VM Factory. It will use the properties * accessable from Runtime, so keep this here at the end. */ vmFactory.initVelocimacro(); info("NVelocity successfully started."); initialized = true; } } }