Exemplo n.º 1
0
  /** This is the entry point method. */
  @Override
  public void onModuleLoad() {

    DelayedBindRegistry.bind(ginjector);

    ginjector.getPlaceManager().revealCurrentPlace();
  }
Exemplo n.º 2
0
  /** Gwt client entry point */
  @Override
  public final void onModuleLoad() {

    Logger.trace("Entered into Orgama entry point");

    try {
      beforeInjection();
    } catch (Exception ex) {
      Window.alert("Error in pre-injection initialization.  " + ex.getMessage());
      ;
    }

    try {
      // Get the injector
      OrgGinjector i = getInjector();

      Logger.trace("Created the ginjector");

      DelayedBindRegistry.bind(i);

      Logger.trace("Bound the delayed bind registry");

      try {
        afterInjection();
      } catch (Exception ex) {
        // error in post-injection intitialization code
        Logger.error("Error in post-injection code", ex);
      }

      i.getPlaceManager().revealCurrentPlace();

      Logger.trace("revealed the current place");
    } catch (Exception ex) {
      Window.alert("Error in injection phase of initialization.  " + ex.getMessage());
      Logger.error("Attempting to log exception", ex);
    }
  }