com.atlassian.confluence.velocity
Class ConfluenceParserPool
java.lang.Object
com.atlassian.confluence.velocity.ConfluenceParserPool
- All Implemented Interfaces:
- org.apache.velocity.runtime.ParserPool
public class ConfluenceParserPool
- extends java.lang.Object
- implements org.apache.velocity.runtime.ParserPool
A Velocity ParserPool
implementation that is backed by commons-pool. This pool respects the following
properties.
This is a copy of the DynamicParserPool from template-renderer. It is here temporarily until I can think of
a good place to put it.
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: .
The cap on the number of "idle" instances in the pool. Use a negative
value to indicate an unlimited number of idle instances.
Default:
Maximum number of milliseconds to block when borrowing an object.
Default:
Method Summary |
org.apache.velocity.runtime.parser.Parser |
get()
|
void |
initialize(org.apache.velocity.runtime.RuntimeServices rsvc)
|
void |
put(org.apache.velocity.runtime.parser.Parser parser)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ConfluenceParserPool
public ConfluenceParserPool()
initialize
public void initialize(org.apache.velocity.runtime.RuntimeServices rsvc)
- Specified by:
initialize
in interface org.apache.velocity.runtime.ParserPool
get
public org.apache.velocity.runtime.parser.Parser get()
- Specified by:
get
in interface org.apache.velocity.runtime.ParserPool
put
public void put(org.apache.velocity.runtime.parser.Parser parser)
- Specified by:
put
in interface org.apache.velocity.runtime.ParserPool
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2003-2013 Atlassian. All Rights Reserved.