net.sf.jpackit.notification
Interface JPackitEventProducer

All Known Subinterfaces:
PackageBuilder
All Known Implementing Classes:
AbstractJPackitEventProducer, JarPackageBuilder, JarScanner

public interface JPackitEventProducer

Interface that encapsulates event producing for notification framework.

Author:
Kamil K. Shamgunov

Method Summary
 void addNotificationListener(JPackitNotificationListener listener)
          Adds JPackitNotificationListener to JPackitEventProducer so it can pass information about generation process.
 void cancelAction()
          Notifies JPackitEventProducer that current operation should be interrupted
 void fireActionInterrupted()
          Notifies all registered JPackitNotificationListener that build process was interrupted
 void fireErrorMessageChanged(JPackitNotificationEvent event)
          Notifies all registered JPackitNotificationListener that error occured
 void fireProgressInfoChanged(JPackitNotificationEvent event)
          Notifies all registered JPackitNotificationListener that progress info changed
 void fireStateChanged(JPackitNotificationEvent event)
          Notifies all registered JPackitNotificationListener that state changed
 void removeNotificationListener(JPackitNotificationListener listener)
          Removes JPackitNotificationListener
 

Method Detail

addNotificationListener

void addNotificationListener(JPackitNotificationListener listener)
Adds JPackitNotificationListener to JPackitEventProducer so it can pass information about generation process.

Parameters:
listener - JPackitNotificationListener to add..

removeNotificationListener

void removeNotificationListener(JPackitNotificationListener listener)
Removes JPackitNotificationListener

Parameters:
listener - JPackitNotificationListener to remove.

fireStateChanged

void fireStateChanged(JPackitNotificationEvent event)
Notifies all registered JPackitNotificationListener that state changed

Parameters:
event - JPackitNotificationEvent to pass to listeners.

fireProgressInfoChanged

void fireProgressInfoChanged(JPackitNotificationEvent event)
Notifies all registered JPackitNotificationListener that progress info changed

Parameters:
event - JPackitNotificationEvent to pass to listeners.

fireErrorMessageChanged

void fireErrorMessageChanged(JPackitNotificationEvent event)
Notifies all registered JPackitNotificationListener that error occured

Parameters:
event - JPackitNotificationEvent to pass to listeners.

fireActionInterrupted

void fireActionInterrupted()
Notifies all registered JPackitNotificationListener that build process was interrupted


cancelAction

void cancelAction()
Notifies JPackitEventProducer that current operation should be interrupted