Package org.jboss.errai.cdi.server.events

Examples of org.jboss.errai.cdi.server.events.EventObserverMethod


    String name = event.getSubject().substring("cdi.event:".length());
    try {
      if (observedEvents.containsKey(name) && event.getCount() == 1 && event.isNew()) {
        final Class<?> type = this.getClass().getClassLoader().loadClass(name);
        abd.addObserverMethod(new EventObserverMethod(type, bus, mgr));
        if (observedEvents != null) {
          for (Annotation[] qualifiers : observedEvents.get(name)) {
            abd.addObserverMethod(new EventObserverMethod(type, bus, mgr, qualifiers));
          }
        }
      }
    } catch (Exception e) {
      throw new RuntimeException(e);
View Full Code Here


      if (ec.isConversational()) {
        abd.addObserverMethod(new ConversationalEventObserverMethod(ec.getRawType(), bus, ec.getQualifiers()));
      }
      else {
        abd.addObserverMethod(new EventObserverMethod(ec.getRawType(), bus, ec.getQualifiers()));
      }
    }

    for (MessageSender ms : messageSenders) {
      abd.addBean(new SenderBean(ms.getSenderType(), ms.getQualifiers(), bus));
View Full Code Here

      if (ec.isConversational()) {
        abd.addObserverMethod(new ConversationalEventObserverMethod(ec.getRawType(), bus, ec.getQualifiers()));
      }
      else {
        abd.addObserverMethod(new EventObserverMethod(ec.getRawType(), bus, ec.getQualifiers()));
      }
    }

    for (MessageSender ms : messageSenders) {
      abd.addBean(new SenderBean(ms.getSenderType(), ms.getQualifiers(), bus));
View Full Code Here

      if (ec.isConversational()) {
        abd.addObserverMethod(new ConversationalEventObserverMethod(ec.getRawType(), bus, ec.getQualifiers()));
      }
      else {
        abd.addObserverMethod(new EventObserverMethod(ec.getRawType(), bus, ec.getQualifiers()));
      }
    }

    for (MessageSender ms : messageSenders) {
      abd.addBean(new SenderBean(ms.getSenderType(), ms.getQualifiers(), bus));
View Full Code Here

          if (org.jboss.errai.common.rebind.EnvUtil.isPortableType(observerPoint.getObservedType())) {
            if (observerPoint.getObservedType().isAnnotationPresent(Conversational.class)) {
              abd.addObserverMethod(new ConversationalEventObserverMethod(observerPoint.getObservedType(), bus, observerPoint.getQualifiers()));
            }
            else {
              abd.addObserverMethod(new EventObserverMethod(observerPoint.getObservedType(), bus, observerPoint.getQualifiers()));
            }
          }
        }

        for (MessageSender ms : messageSenders) {
View Full Code Here

      if (ec.isConversational()) {
        abd.addObserverMethod(new ConversationalEventObserverMethod(ec.getRawType(), bus, ec.getQualifiers()));
      }
      else {
        abd.addObserverMethod(new EventObserverMethod(ec.getRawType(), bus, ec.getQualifiers()));
      }
    }

    for (MessageSender ms : messageSenders) {
      abd.addBean(new SenderBean(ms.getSenderType(), ms.getQualifiers(), bus));
View Full Code Here

            {

                final String className = event.getSubject().substring("cdi.event:".length());
                final Class<?> type = this.getClass().getClassLoader().loadClass(className);

                abd.addObserverMethod(new EventObserverMethod(type, bus));
      }
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
  }
View Full Code Here

      if (ec.isConversational()) {
        abd.addObserverMethod(new ConversationalEventObserverMethod(ec.getRawType(), bus, ec.getQualifiers()));
      }
      else {
        abd.addObserverMethod(new EventObserverMethod(ec.getRawType(), bus, ec.getQualifiers()));
      }
    }

    for (MessageSender ms : messageSenders) {
      abd.addBean(new SenderBean(ms.getSenderType(), ms.getQualifiers(), bus));
View Full Code Here

      if (org.jboss.errai.common.rebind.EnvUtil.isPortableType(observerPoint.getObservedType())) {
        if (observerPoint.getObservedType().isAnnotationPresent(Conversational.class)) {
          abd.addObserverMethod(new ConversationalEventObserverMethod(observerPoint.getObservedType(), bus, observerPoint.getQualifiers()));
        }
        else {
          abd.addObserverMethod(new EventObserverMethod(observerPoint.getObservedType(), bus, observerPoint.getQualifiers()));
        }
      }
    }

    for (MessageSender ms : messageSenders) {
View Full Code Here

TOP

Related Classes of org.jboss.errai.cdi.server.events.EventObserverMethod

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.