Package javax.enterprise.inject.spi

Examples of javax.enterprise.inject.spi.BeanManager.fireEvent()


                  manager = container.getBeanManager();
               }

               manager.fireEvent(new PreStartup());
               manager.fireEvent(new Startup(workingDir, restarting));
               manager.fireEvent(new PostStartup());
               manager.fireEvent(new AcceptUserInput());
               weld.shutdown();
            }
         });
View Full Code Here


               }

               manager.fireEvent(new PreStartup());
               manager.fireEvent(new Startup(workingDir, restarting));
               manager.fireEvent(new PostStartup());
               manager.fireEvent(new AcceptUserInput());
               weld.shutdown();
            }
         });

         currentShell.start();
View Full Code Here

                  WeldContainer container = weld.initialize();
                  manager = container.getBeanManager();
               }
               try
               {
                  manager.fireEvent(new PreStartup());
               }
               catch (Throwable t)
               {
                  System.out.println("Error during PreStartup event");
                  t.printStackTrace();
View Full Code Here

                  System.out.println("Error during PreStartup event");
                  t.printStackTrace();
               }
               try
               {
                  manager.fireEvent(new Startup(workingDir, restarting));
               }
               catch (Throwable t)
               {
                  System.out.println("Error during Startup event");
                  t.printStackTrace();
View Full Code Here

                  t.printStackTrace();
               }
               try
               {

                  manager.fireEvent(new PostStartup());
               }
               catch (Throwable t)
               {
                  System.out.println("Error during PostStartup event");
                  t.printStackTrace();
View Full Code Here

                  System.out.println("Error during PostStartup event");
                  t.printStackTrace();
               }
               try
               {
                  manager.fireEvent(new AcceptUserInput());
               }
               catch (Throwable t)
               {
                  System.out.println("Error during AcceptUserInput event");
                  t.printStackTrace();
View Full Code Here

    @Override
    public void validate(final FacesContext context) {
        context.getApplication().publishEvent(context, PreValidateEvent.class, UIValidateForm.class, this);
        BeanManager manager = new BeanManagerLocator().getBeanManager();
        manager.fireEvent(this, BEFORE);

        Validator validator = null;
        try {
            validator = context.getApplication().createValidator(getValidatorId());
            if (validator == null) {
View Full Code Here

                log.warn("The form validation failed but neither 'showFieldMessages' nor 'showGlobalMessages' " +
                        "is true. The validation messages will be dropped.");
            }
        }

        manager.fireEvent(this, AFTER);
        context.getApplication().publishEvent(context, PostValidateEvent.class, UIValidateForm.class, this);
    }

    /**
     * Attempt to locate the form in which this component resides. If the component is not within a UIForm tag, throw an
View Full Code Here

            navigationCase = ((ConfigurableNavigationHandler) navigationHandler)
                    .getNavigationCase(context, fromAction, outcome);
        } else {
            navigationCase = getNavigationCase(context, fromAction, outcome);
        }
        manager.fireEvent(new PreNavigateEvent(context, fromAction, outcome, navigationCase));
        parent.handleNavigation(context, fromAction, outcome);
    }

}
View Full Code Here

      if (resourceFactory != null)
      {
         BeanManager manager = resourceFactory.getManagerInstance();
         if (manager != null)
         {
            manager.fireEvent(
                     new ResourceRenamed(this, original.getAbsolutePath(), file.getAbsolutePath()),
                     new Annotation[] {});
         }
      }
   }
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.