ParserPool (Velocity 1.7 API)
Keywords: org.apache.velocity.runtime.ParserPool interface

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.velocity.runtime
Interface ParserPool

All Known Implementing Classes:
  ParserPoolImpl

public interface ParserPool

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.

Since:
  1.5
Version:
  $Id: RuntimeInstance.java 384374 2006-03-08 23:19:30Z nbubna $
Author:
  Serge Knystautas

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.

Method Detail

### initialize

    public void initialize(RuntimeServices svc)

  Initialize the pool so that it can begin serving parser instances.

  Parameters:
    `svc` -

### get

    public Parser get()

  Retrieve an instance of a parser pool.

  Returns:
    A parser object.

### put

    public void put(Parser parser)

  Return the parser to the pool so that it may be reused.

  Parameters:
    `parser` -

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-2010 Apache Software Foundation. All Rights Reserved.