public abstract class AbstractSynchronizedXMLProducer extends Mutex implements SynchronizedXMLProducer, org.apache.avalon.excalibur.pool.Recyclable
Modifier and Type | Field and Description |
---|---|
protected SynchronizedXMLConsumer |
synchronizedXmlConsumer
The
XMLConsumer receiving SAX events. |
Constructor and Description |
---|
AbstractSynchronizedXMLProducer() |
Modifier and Type | Method and Description |
---|---|
void |
recycle()
Recycle the producer by removing references
|
void |
setConsumer(SynchronizedXMLConsumer consumer)
Set the
XMLConsumer that will receive XML data. |
void |
setConsumer(org.apache.cocoon.xml.XMLConsumer consumer)
Set the
XMLConsumer that will receive XML data. |
acquired, isAcquired
acquire, attempt, getTokens, release
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
acquired
protected SynchronizedXMLConsumer synchronizedXmlConsumer
XMLConsumer
receiving SAX events.public void setConsumer(SynchronizedXMLConsumer consumer)
XMLConsumer
that will receive XML data.
setConsumer
in interface SynchronizedXMLProducer
public void setConsumer(org.apache.cocoon.xml.XMLConsumer consumer)
XMLConsumer
that will receive XML data.
Note we will attempt to synchronize this internally. Do not use
this method if peforming synchronization externally on the provided
consumer as this will cause deadlock since we synchronize internally.
To be safe use @see setConsumer(SynchronizedXMLConsumer consumer).
setConsumer
in interface org.apache.cocoon.xml.XMLProducer
public void recycle()
recycle
in interface org.apache.avalon.excalibur.pool.Recyclable
Copyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.