org.jcreme.processing
Class ProducerRunnable

java.lang.Object
  extended byorg.jcreme.processing.ProducerRunnable
All Implemented Interfaces:
java.lang.Runnable

public class ProducerRunnable
extends java.lang.Object
implements java.lang.Runnable

This class is designed to act as a data source.

Version:
$Revision: 1.1 $
Author:
$Author: dbregeon $

Constructor Summary
ProducerRunnable(Producer source)
          Creates new ProducerRunnable
 
Method Summary
 Producer getSource()
          Gives access to the underlying source.
 void run()
          The actual production process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProducerRunnable

public ProducerRunnable(Producer source)
                 throws java.lang.IllegalArgumentException
Creates new ProducerRunnable

Parameters:
source - The producer that will produce the items.
Throws:
java.lang.IllegalArgumentException - if source is null.
Method Detail

run

public void run()
The actual production process.

Specified by:
run in interface java.lang.Runnable

getSource

public Producer getSource()
Gives access to the underlying source.

Returns:
the Producer that is animated by this Runnable.


Copyright 2006 null. All Rights Reserved.