nu.staldal.lagoon.core
Interface ProducerInterface

All Known Subinterfaces:
ByteStreamProducer, XMLStreamProducer
All Known Implementing Classes:
ByteStreamConsumer, Format, Parse, Process, Producer, Read, Source, Transform, XMLStreamConsumer

public interface ProducerInterface

A Producer is one step in the pipeline process to build a file in a website.


Method Summary
 void destroy()
          Destroy the producer.
 boolean hasBeenUpdated(long lastBuild)
          Check if something has been updated so a rebuild is nessesary.
 void init()
          Initialize the producer.
 

Method Detail

init

void init()
          throws LagoonException,
                 java.io.IOException
Initialize the producer. This method is invoked once before the start() method is invoked the first time. This method may use the getParam(), getParamNames(), and getContext() methods.

Throws:
LagoonException
java.io.IOException

destroy

void destroy()
             throws java.io.IOException
Destroy the producer. This method is invoked once after the start() method is invoked the last time. This method may use the getParam(), getParamNames(), and getContext() methods.

Throws:
java.io.IOException

hasBeenUpdated

boolean hasBeenUpdated(long lastBuild)
                       throws LagoonException,
                              java.io.IOException
Check if something has been updated so a rebuild is nessesary.

Parameters:
lastBuild - the time of the last build
Throws:
LagoonException
java.io.IOException