NVelocity.Runtime.RuntimeInstance.Init C# (CSharp) Method

Init() public method

public Init ( ) : void
return void
		public void Init()
		{
			lock(this)
			{
				if (initialized == false)
				{
					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();

					initialized = true;
				}
			}
		}

Same methods

RuntimeInstance::Init ( ExtendedProperties p ) : void
RuntimeInstance::Init ( String configurationFile ) : void

Usage Example

示例#1
0
 /// <summary>
 /// This is the primary initialization method in the Velocity
 /// Runtime. The systems that are setup/initialized here are
 /// as follows:
 /// <list type="">
 ///		<item>Logging System</item>
 ///		<item>ResourceManager</item>
 ///		<item>Parser Pool</item>
 ///		<item>Global Cache</item>
 ///		<item>Static Content Include System</item>
 ///		<item>Velocimacro System</item>
 /// </list>
 /// </summary>
 public static void Init()
 {
     lock (typeof(RuntimeSingleton))
     {
         ri.Init();
     }
 }