Package com.atlassian.velocity
Class JiraVelocityParserPool
java.lang.Object
com.atlassian.velocity.JiraVelocityParserPool
- All Implemented Interfaces:
org.apache.velocity.runtime.ParserPool
public class JiraVelocityParserPool
extends Object
implements org.apache.velocity.runtime.ParserPool
Simply copied from ATR and placed here - we probably need a better place for it some time soon.
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.
The cap on the number of "idle" instances in the pool. Use a negative
value to indicate an unlimited number of idle instances.
A Velocity ParserPool
implementation that is backed by commons-pool. This pool respects the following
properties.
"parser.pool.size"
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: 20.
"parser.pool.maxIdle"
The cap on the number of "idle" instances in the pool. Use a negative
value to indicate an unlimited number of idle instances.
Default: 5
- Since:
- v6.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.velocity.runtime.parser.Parser
get()
void
initialize
(org.apache.velocity.runtime.RuntimeServices rsvc) void
put
(org.apache.velocity.runtime.parser.Parser parser) toString()
-
Constructor Details
-
JiraVelocityParserPool
public JiraVelocityParserPool()
-
-
Method Details
-
initialize
public void initialize(org.apache.velocity.runtime.RuntimeServices rsvc) - Specified by:
initialize
in interfaceorg.apache.velocity.runtime.ParserPool
-
get
public org.apache.velocity.runtime.parser.Parser get()- Specified by:
get
in interfaceorg.apache.velocity.runtime.ParserPool
-
put
public void put(org.apache.velocity.runtime.parser.Parser parser) - Specified by:
put
in interfaceorg.apache.velocity.runtime.ParserPool
-
toString
-