/// <summary> Create the underlying "pool".</summary> /// <param name="rsvc"> /// </param> public virtual void Initialize(IRuntimeServices rsvc) { max = rsvc.GetInt(NVelocity.Runtime.RuntimeConstants.PARSER_POOL_SIZE, NVelocity.Runtime.RuntimeConstants.NUMBER_OF_PARSERS); pool = new SimplePool <Parser.Parser>(max); for (int i = 0; i < max; i++) { pool.Put(rsvc.CreateNewParser()); } if (rsvc.Log.DebugEnabled) { rsvc.Log.Debug("Created '" + max + "' parsers."); } }