class DefaultEventHandler extends EventHandlerBase {

  public void setProducer(AdaptrisMessageProducer p) {
    if (!retrieveComponentState().equals(ClosedState.getInstance())) {
      throw new IllegalStateException("Attempt to set the producer when already initialised");
    }
    producer = Args.notNull(p, "producer");
  }

  public  DefaultEventHandler();
  public  DefaultEventHandler(AdaptrisMessageProducer producer);
  public  DefaultEventHandler(AdaptrisConnection connection, AdaptrisMessageProducer producer);

}