|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.n52.security.common.xml.DefaultDocumentBuilderPool
public class DefaultDocumentBuilderPool
Class DocumentBuilderPool implements a pool for document builders.
The class makes use of a GenericKeyedObjectPool, which comes out of the commons-pool library, to implement the parser pool. Currently the pooling settings are hard coded, e.g. the total size and max idle count, but the settings shall meet the most requirements.
Constructor Summary | |
---|---|
DefaultDocumentBuilderPool()
Constructor creates a new instance. |
Method Summary | |
---|---|
javax.xml.parsers.DocumentBuilder |
acquire(DOMParserOptions options)
Method acquires a DocumentBuilder with meets the requirements expressed by the options. |
void |
release(javax.xml.parsers.DocumentBuilder builder,
DOMParserOptions options)
Method releases a DocumentBuilder, wich was acquired using the parser options. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultDocumentBuilderPool()
Method Detail |
---|
public javax.xml.parsers.DocumentBuilder acquire(DOMParserOptions options)
DocumentBuilderPool
acquire
in interface DocumentBuilderPool
options
- the options.
DocumentBuilderPool.acquire(DOMParserOptions)
public void release(javax.xml.parsers.DocumentBuilder builder, DOMParserOptions options)
DocumentBuilderPool
release
in interface DocumentBuilderPool
builder
- the builder.options
- the options.DocumentBuilderPool.release(DocumentBuilder, DOMParserOptions)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |