Package com.jgaap.generics

Examples of com.jgaap.generics.EventCuller


    }
    return builder.build();
  }

  public static EventCuller getEventCuller(String action) throws Exception{
    EventCuller eventCuller;
    String[] tmp = action.split("\\|", 2);
    action = tmp[0].trim().toLowerCase();
    if(eventCullers.containsKey(action)){
      eventCuller = eventCullers.get(action).getClass().newInstance();
    }else{
      throw new Exception("Event culler "+action+" not found!");
    }
    if(tmp.length > 1){
      eventCuller.setParameters(tmp[1]);
    }
    return eventCuller;
  }
View Full Code Here


   * @param action - unique identifier for the event culler to add (displayName())
   * @return - a reference to the added event culler
   * @throws Exception - if the EventCuller cannot be found or cannor be instanced
   */
  public EventCuller addEventCuller(String action) throws Exception {
    EventCuller eventCuller = EventCullers.getEventCuller(action);
    eventCullers.add(eventCuller);
    for(EventDriver eventDriver : eventDrivers) {
      addEventCuller(eventCuller, eventDriver);
    }
    return eventCuller;
View Full Code Here

    }
    return eventCuller;
  }
 
  public EventCuller addEventCuller(String action, EventDriver eventDriver) throws Exception {
    EventCuller eventCuller = EventCullers.getEventCuller(action);
    return addEventCuller(eventCuller, eventDriver);
  }
View Full Code Here

TOP

Related Classes of com.jgaap.generics.EventCuller

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.