fr.gouv.culture.util.apache.cocoon.xml
Class AbstractSynchronizedXMLProducer
java.lang.Object
fr.gouv.culture.util.apache.avalon.excalibur.concurrent.Semaphore
fr.gouv.culture.util.apache.avalon.excalibur.concurrent.Mutex
fr.gouv.culture.util.apache.cocoon.xml.AbstractSynchronizedXMLProducer
- All Implemented Interfaces:
- org.apache.avalon.excalibur.pool.Poolable, org.apache.avalon.excalibur.pool.Recyclable, org.apache.avalon.excalibur.concurrent.Sync, SynchronizedXMLProducer, org.apache.cocoon.xml.XMLProducer
- Direct Known Subclasses:
- AbstractSynchronizedXMLPipe
- public abstract class AbstractSynchronizedXMLProducer
- extends Mutex
- implements SynchronizedXMLProducer, org.apache.avalon.excalibur.pool.Recyclable
Created by IntelliJ IDEA.
User: rpandey
Date: Jun 2, 2003
Time: 2:45:02 PM
To change this template use Options | File Templates.
Method Summary |
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.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.avalon.excalibur.concurrent.Sync |
acquire, attempt, release |
synchronizedXmlConsumer
protected SynchronizedXMLConsumer synchronizedXmlConsumer
- The
XMLConsumer
receiving SAX events.
AbstractSynchronizedXMLProducer
public AbstractSynchronizedXMLProducer()
setConsumer
public void setConsumer(SynchronizedXMLConsumer consumer)
- Set the
XMLConsumer
that will receive XML data.
- Specified by:
setConsumer
in interface SynchronizedXMLProducer
setConsumer
public void setConsumer(org.apache.cocoon.xml.XMLConsumer consumer)
- Set the
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).
- Specified by:
setConsumer
in interface org.apache.cocoon.xml.XMLProducer
recycle
public void recycle()
- Recycle the producer by removing references
- Specified by:
recycle
in interface org.apache.avalon.excalibur.pool.Recyclable
Copyright © 2000-2003 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.