Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jxbeans.flow_control
Class Parallelizer  view Parallelizer download Parallelizer.java

java.lang.Object
  extended byorg.jxbeans.AbstractJXBean
      extended byorg.jxbeans.AbstractDocumentSource
          extended byorg.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

Field Summary
private static org.apache.log4j.Category log
           
 
Fields inherited from class org.jxbeans.AbstractDocumentSource
listeners
 
Fields inherited from class org.jxbeans.AbstractJXBean
 
Constructor Summary
Parallelizer()
           
 
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 org.jxbeans.AbstractDocumentSource
addDocumentReadyListener, forwardDocument, forwardDocument, getDocumentReadyListeners, logDocument, removeDocumentReadyListener
 
Methods inherited from class org.jxbeans.AbstractJXBean
getName, logErrorAndRaiseException, logMethodEntry, logMethodEntry, logMethodExit, logMethodExit, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.log4j.Category log
Constructor Detail

Parallelizer

public Parallelizer()
Method Detail

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