public EventQueueHandler(){
  Settings settings=new Settings(SETTINGS_NAMESPACE);
  int nrof=settings.getInt(NROF_SETTING);
  this.queues=new ArrayList<EventQueue>();
  for (int i=1; i <= nrof; i++) {
    Settings s=new Settings(SETTINGS_NAMESPACE + i);
    if (s.contains(PATH_SETTING)) {
      int preload=0;
      String path="";
      if (s.contains(PRELOAD_SETTING)) {
        preload=s.getInt(PRELOAD_SETTING);
      }
      path=s.getSetting(PATH_SETTING);
      queues.add(new ExternalEventsQueue(path,preload));
    }
 else     if (s.contains(CLASS_SETTING)) {
      String className=CLASS_PACKAGE + "." + s.getSetting(CLASS_SETTING);
      EventQueue eq=(EventQueue)s.createIntializedObject(className);
      queues.add(eq);
    }
  }
}

public EventQueueHandler ( ) { Settings settings = new Settings ( SETTINGS_NAMESPACE ) ; int nrof = settings . getInt ( NROF_SETTING ) ; this . queues = new ArrayList < EventQueue > ( ) ; for ( int i = 1 ; i <= nrof ; i ++ ) { Settings s = new Settings ( SETTINGS_NAMESPACE + i ) ; if ( s . contains ( PATH_SETTING ) ) { int preload = 0 ; String path = "" ; if ( s . contains ( PRELOAD_SETTING ) ) { preload = s . getInt ( PRELOAD_SETTING ) ; } path = s . getSetting ( PATH_SETTING ) ; queues . add ( new ExternalEventsQueue ( path , preload ) ) ; } else if ( s . contains ( CLASS_SETTING ) ) { String className = CLASS_PACKAGE + "." + s . getSetting ( CLASS_SETTING ) ; EventQueue eq = ( EventQueue ) s . createIntializedObject ( className ) ; queues . add ( eq ) ; } } }
creates a new eventqueuehandler which can be queried for event queues .
