com.infoscape.proteus.filter
Class ExpandedSource

java.lang.Object
  |
  +--com.infoscape.proteus.filter.FilteredSource
        |
        +--com.infoscape.proteus.filter.ExpandedSource
All Implemented Interfaces:
MessageHandler, MessageSource, Transactional

public class ExpandedSource
extends FilteredSource

An ExpandedSource is a FilteredSource whose filter may return more than one message. It caches the results of the call to the filter in a list and returns elements from the list with each call to getMessage() until the list is empty, at which point it makes another call to the source getmessage() and calls the filter again.


Constructor Summary
ExpandedSource(org.jdom.Element elt)
           
 
Method Summary
 java.lang.Object getMessage()
           
 
Methods inherited from class com.infoscape.proteus.filter.FilteredSource
commit, disconnect, getConnection, reconnect, rollback, setSyncPoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpandedSource

public ExpandedSource(org.jdom.Element elt)
               throws java.lang.Exception
Parameters:
elt -
Throws:
java.lang.Exception
Method Detail

getMessage

public java.lang.Object getMessage()
                            throws java.lang.Exception
Specified by:
getMessage in interface MessageSource
Overrides:
getMessage in class FilteredSource
Throws:
java.lang.Exception