| org.apache.velocity.runtime.ParserPool
All known Subclasses: org.apache.velocity.runtime.ParserPoolImpl,
ParserPool | public interface ParserPool (Code) | | Provides instances of parsers as needed. get() will return a new parser if
available. If a parser is acquired from the pool, put() should be called
with that parser to make it available again for reuse.
author: Serge Knystautas version: $Id: RuntimeInstance.java 384374 2006-03-08 23:19:30Z nbubna $ |
Method Summary | |
Parser | get() Retrieve an instance of a parser pool. | void | initialize(RuntimeServices svc) Initialize the pool so that it can begin serving parser instances. | void | put(Parser parser) Return the parser to the pool so that it may be reused. |
get | Parser get()(Code) | | Retrieve an instance of a parser pool.
A parser object. |
initialize | void initialize(RuntimeServices svc)(Code) | | Initialize the pool so that it can begin serving parser instances.
Parameters: svc - |
put | void put(Parser parser)(Code) | | Return the parser to the pool so that it may be reused.
Parameters: parser - |
|
|