Package org.openntf.domino.xots.annotations

Examples of org.openntf.domino.xots.annotations.Trigger


  public void fireEvent(final IDominoEvent event) {
    for (Class<?> clazz : XotsService.getInstance().getLoadedClasses()) {
      if (XotsITriggeredTasklet.class.isAssignableFrom(clazz) && Runnable.class.isAssignableFrom(clazz)) {
        // Then look to see if the annotation exists and matches this event
        Trigger trigger = clazz.getAnnotation(Trigger.class);
        if (trigger != null) {
          String value = trigger.value();
          if (value != null) {
            // TODO Handle DB events
            if (event instanceof CustomNamedEvent) {
              String eventName = ((CustomNamedEvent) event).getName();
              if (value.equals(eventName)) {
View Full Code Here

TOP

Related Classes of org.openntf.domino.xots.annotations.Trigger

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.