public class


extends Object
implements ParserPool
   ↳ com.atlassian.velocity.JiraVelocityParserPool

Class Overview

Simply copied from ATR and placed here - we probably need a better place for it some time soon.

A Velocity ParserPool implementation that is backed by commons-pool. This pool respects the following properties.

{@value Props#MAX_ACTIVE}

The cap on the total number of object instances managed by the pool. Negative values mean that there is no limit to the number of objects allocated by the pool.

Default: {@value Props#MAX_ACTIVE_DEFAULT}.

{@value Props#MAX_IDLE}

The cap on the number of "idle" instances in the pool. Use a negative value to indicate an unlimited number of idle instances.

Default: {@value Props#MAX_IDLE_DEFAULT}

{@value Props#MAX_WAIT}

Maximum number of milliseconds to block when borrowing an object.

Default: {@value Props#MAX_WAIT_DEFAULT}


Public Constructors
Public Methods
Parser get()
void initialize(RuntimeServices rsvc)
void put(Parser parser)
String toString()
Inherited Methods
From class java.lang.Object
From interface org.apache.velocity.runtime.ParserPool

Public Constructors

public JiraVelocityParserPool ()

Public Methods

public Parser get ()

public void initialize (RuntimeServices rsvc)

public void put (Parser parser)

public String toString ()