Package org.apache.velocity.runtime
Class ParserPoolImpl
java.lang.Object
org.apache.velocity.runtime.ParserPoolImpl
- All Implemented Interfaces:
ParserPool
This wraps the original parser SimplePool class. It also handles
instantiating ad-hoc parsers if none are available.
- Since:
- 1.5
- Version:
- $Id: RuntimeInstance.java 384374 2006-03-08 23:19:30Z nbubna $
- Author:
- Serge Knystautas
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionget()
Call the wrapped pool.void
initialize
(RuntimeServices rsvc) Create the underlying "pool".void
Call the wrapped pool.
-
Constructor Details
-
ParserPoolImpl
public ParserPoolImpl()
-
-
Method Details
-
initialize
Create the underlying "pool".- Specified by:
initialize
in interfaceParserPool
- Parameters:
rsvc
-
-
get
Call the wrapped pool. If none are available, it will create a new temporary one.- Specified by:
get
in interfaceParserPool
- Returns:
- A parser Object.
-
put
Call the wrapped pool.- Specified by:
put
in interfaceParserPool
- Parameters:
parser
-
-