org.apache.maven.diagrams.connector_api
Interface DynamicDiagramConnector


public interface DynamicDiagramConnector

It is listening manager for one (single thread) session. It allows to register listener and to start raising events from the connector to the listener.

Author:
Piotr Tabor

Method Summary
 void interrupt()
          It stops the thread that is sending events to the listener/
 void prepare(ConnectorConfiguration config)
          The method should be call once before "start".
 void setGraphListener(GraphListener listener)
          Sets single listener
 void start()
          Starts (in a new thread) sending events to the listener
 void waitUntilFinished()
          Wait's until the "events sender thread" is finished
 

Method Detail

setGraphListener

void setGraphListener(GraphListener listener)
Sets single listener

Parameters:
listener -

prepare

void prepare(ConnectorConfiguration config)
The method should be call once before "start". It prepares everything to raising the events.

Parameters:
config -

start

void start()
Starts (in a new thread) sending events to the listener


interrupt

void interrupt()
               throws java.lang.InterruptedException
It stops the thread that is sending events to the listener/

Throws:
java.lang.IllegalStateException
java.lang.InterruptedException

waitUntilFinished

void waitUntilFinished()
                       throws java.lang.InterruptedException
Wait's until the "events sender thread" is finished

Throws:
java.lang.InterruptedException


Copyright © 2002-2010 Apache Software Foundation. All Rights Reserved.