/// <summary> Initializes the Velocity parser pool. /// This still needs to be implemented. /// </summary> private void initializeParserPool() { int numParsers = getInt(NVelocity.Runtime.RuntimeConstants_Fields.PARSER_POOL_SIZE, NVelocity.Runtime.RuntimeConstants_Fields.NUMBER_OF_PARSERS); parserPool = new SimplePool(numParsers); for (int i = 0; i < numParsers; i++) { parserPool.put(createNewParser()); } info("Created: " + numParsers + " parsers."); }
/// <summary> Initializes the Velocity parser pool. /// This still needs to be implemented. /// </summary> private void initializeParserPool() { int numParsers = getInt(NVelocity.Runtime.RuntimeConstants_Fields.PARSER_POOL_SIZE, NVelocity.Runtime.RuntimeConstants_Fields.NUMBER_OF_PARSERS); parserPool = new SimplePool(numParsers); for (int i = 0; i < numParsers; i++) { parserPool.put(createNewParser()); } info("Created: " + numParsers + " parsers."); }