/** * Creates the loader stored as {@link #BROWSER_LOADER}. * * @returns {@code null} if not in GWT client code, where * {@link GWT#create(Class)} cannot be used, or a fragment loader for * the user's application otherwise. */ private static AsyncFragmentLoader makeBrowserLoader(int numFragments, int initialLoad[]) { if (GWT.isClient()) { return new AsyncFragmentLoader(numFragments, initialLoad, (LoadingStrategy) GWT.create(LoadingStrategy.class), (Logger) GWT.create(Logger.class), (OnSuccessExecutor) GWT.create(OnSuccessExecutor.class)); } else { return null; } }
/** * Creates the loader stored as {@link #BROWSER_LOADER}. * * @returns {@code null} if not in GWT client code, where * {@link GWT#create(Class)} cannot be used, or a fragment loader for * the user's application otherwise. */ private static AsyncFragmentLoader makeBrowserLoader(int numFragments, int initialLoad[]) { if (GWT.isClient()) { return new AsyncFragmentLoader(numFragments, initialLoad, (LoadingStrategy) GWT.create(LoadingStrategy.class), (Logger) GWT.create(Logger.class), (OnSuccessExecutor) GWT.create(OnSuccessExecutor.class)); } else { return null; } }
/** * Creates the loader stored as {@link #BROWSER_LOADER}. * * @returns {@code null} if not in GWT client code, where * {@link GWT#create(Class)} cannot be used, or a fragment loader for * the user's application otherwise. */ private static AsyncFragmentLoader makeBrowserLoader(int numFragments, int initialLoad[]) { if (GWT.isClient()) { return new AsyncFragmentLoader(numFragments, initialLoad, (LoadingStrategy) GWT.create(LoadingStrategy.class), (Logger) GWT.create(Logger.class), (OnSuccessExecutor) GWT.create(OnSuccessExecutor.class)); } else { return null; } }