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, isAcquiredacquire, attempt, getTokens, releaseclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacquiredprotected SynchronizedXMLConsumer synchronizedXmlConsumer
XMLConsumer receiving SAX events.public void setConsumer(SynchronizedXMLConsumer consumer)
XMLConsumer that will receive XML data.
setConsumer in interface SynchronizedXMLProducerpublic 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.XMLProducerpublic void recycle()
recycle in interface org.apache.avalon.excalibur.pool.RecyclableCopyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.