java.lang.Object
org.jxbeans.AbstractJXBean
org.jxbeans.AbstractDocumentSource
org.jxbeans.flow_control.Parallelizer
- All Implemented Interfaces:
- org.jxbeans.DocumentReadyListener, org.jxbeans.DocumentSource, java.util.EventListener, java.io.Serializable
- public class Parallelizer
- extends org.jxbeans.AbstractDocumentSource
- implements org.jxbeans.DocumentReadyListener
This JXBean will convey a document to multiple DocumentReadyListeners in turn.
Each DocumentReadyListener will get the document one at a time (i.e., not
parallel in a multi-threaded sense).
This JXBean supports PropertyChangeListeners, publishing a single PropertyChangeEvent
for the property "numberOfListeners". This property represents the number of listeners
that will be handed the document during looping. This PropertyChangeEvent is published
after entry into the documentReady method, but before the first
DocumentReadyListener gets notified.
- Since:
- 1.0
- Version:
- 1.0
|
Method Summary |
void |
documentReady(org.jxbeans.DocumentReadyEvent anEvent)
Classes implementing this method are expected to process the
document contained in the DocumentReadyEvent in some fashion
specific to the class implementing this interface. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static org.apache.log4j.Category log
Parallelizer
public Parallelizer()
documentReady
public void documentReady(org.jxbeans.DocumentReadyEvent anEvent)
throws org.jxbeans.JXBeanException
- Description copied from interface:
org.jxbeans.DocumentReadyListener
- Classes implementing this method are expected to process the
document contained in the
DocumentReadyEvent in some fashion
specific to the class implementing this interface.
- Specified by:
documentReady in interface org.jxbeans.DocumentReadyListener