Examples of Eager


Examples of org.kie.api.definition.rule.Eager

            }

            if (enforceEager) {
                rule.setEager(true);
            } else {
                Eager eager = ruleDescr.getTypedAnnotation(Eager.class);
                if (eager != null) {
                    rule.setEager(eager.value());
                }
            }

            Direct direct = ruleDescr.getTypedAnnotation(Direct.class);
            if (direct != null && direct.value()) {
View Full Code Here

Examples of org.omnifaces.cdi.Eager

  // Methods --------------------------------------------------------------------------------------------------------

  public <T> void collect(@Observes ProcessBean<T> event, BeanManager beanManager) {

    Annotated annotated = event.getAnnotated();
    Eager eager = getAnnotation(beanManager, annotated, Eager.class);

    if (eager != null) {

      Bean<?> bean = event.getBean();

      if (getAnnotation(beanManager, annotated, ApplicationScoped.class) != null) {
        applicationScopedBeans.add(bean);
      } else if (getAnnotation(beanManager, annotated, SessionScoped.class) != null) {
        sessionScopedBeans.add(bean);
      } else if (getAnnotation(beanManager, annotated, RequestScoped.class) != null) {

        if (!isEmpty(eager.requestURI())) {
          getRequestScopedBeansByRequestURI(eager.requestURI()).add(bean);
        } else if (!isEmpty(eager.viewId())) {
          getRequestScopedBeansByViewId(eager.viewId()).add(bean);
        } else {
          logger.severe(format(MISSING_REQUEST_URI_OR_VIEW_ID, bean.getBeanClass().getName(), RequestScoped.class.getName()));
        }
      } else if (getAnnotation(beanManager, annotated, ViewScoped.class) != null) {
        if (!isEmpty(eager.viewId())) {
          getRequestScopedBeansByViewId(eager.viewId()).add(bean);
        } else {
          logger.severe(format(MISSING_VIEW_ID, bean.getBeanClass().getName(), ViewScoped.class.getName()));
        }
      }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.