Loads the initial data from the server.<p>

@param afterLoad the action that should be executed after loading
508333
public void load(final Runnable afterLoad) {

        CmsRpcAction<CmsAliasInitialFetchResult> action = new CmsRpcAction<CmsAliasInitialFetchResult>() {

            /**
             * @see org.opencms.gwt.client.rpc.CmsRpcAction#execute()
             */
            @Override
            public void execute() {

                getService().getAliasTable(this);
                start(0, true);
            }

            /**
             * @see org.opencms.gwt.client.rpc.CmsRpcAction#onResponse(java.lang.Object)
             */
            @Override
            public void onResponse(CmsAliasInitialFetchResult aliasTable) {

                stop(false);

                String lockOwner = aliasTable.getAliasTableLockOwner();
                if (lockOwner != null) {

                    String errorMessage = CmsAliasMessages.messageAliasTableLocked(lockOwner);
                    String title = CmsAliasMessages.messageAliasTableLockedTitle();
                    CmsAlertDialog alert = new CmsAlertDialog(title, errorMessage);
                    alert.center();
                } else {

                    m_downloadUrl = aliasTable.getDownloadUrl();
                    m_initialData = aliasTable.getRows();
                    m_siteRoot = CmsCoreProvider.get().getSiteRoot();
                    List<CmsAliasTableRow> copiedData = copyData(m_initialData);
                    List<CmsRewriteAliasTableRow> rewriteData = aliasTable.getRewriteAliases();
                    m_view.setData(copiedData, rewriteData);
                    if (afterLoad != null) {
                        afterLoad.run();
                    }
                }
            }
        };
        action.execute();
    }
545868
public void loadNewElementInfo(final AsyncCallback<Void> callback) {

        CmsRpcAction<List<CmsNewResourceInfo>> newResourceInfoAction = new CmsRpcAction<List<CmsNewResourceInfo>>() {

            @Override
            public void execute() {

                start(200, true);

                getService().getNewElementInfo(m_data.getRoot().getSitePath(), this);
            }

            @Override
            protected void onResponse(List<CmsNewResourceInfo> result) {

                stop(false);

                m_data.setNewElementInfos(result);
                if (callback != null) {
                    callback.onSuccess(null);
                }
            }

        };
        newResourceInfoAction.execute();
    }
724039
public void onInitialDataDownloaded() {
        Log.d(TAG, "Initial Data Loaded");
        context().getContactsModule().startImport();
        if (appStateVM.isBookImported()) {
            onAppLoaded();
        }
    }
1304279
public function afterRegistry()
    {
        parent::afterRegistry();

        if ($this->util && (false !== $this->searchData) && (! $this->requestCache)) {
            $this->requestCache = $this->util->getRequestCache();
        }
        if ($this->requestCache) {
            // Do not store searchButtonId
            $this->requestCache->removeParams($this->searchButtonId);
        }
    }
1327519
public static <IMAGE extends ImageView> void doLoadImageUrl(@NonNull IMAGE view, @Nullable String url) {
        Preconditions.checkState(sImageSetter != null, "ImageSetter must be initialized before calling image load");
        sImageSetter.doLoadImageUrl(view, url);
    }
973932
protected void load(ApplicationContext context, Object[] sources) {
		if (logger.isDebugEnabled()) {
			logger.debug(
					"Loading source " + StringUtils.arrayToCommaDelimitedString(sources));
		}
		BeanDefinitionLoader loader = createBeanDefinitionLoader(
				getBeanDefinitionRegistry(context), sources);
		if (this.beanNameGenerator != null) {
			loader.setBeanNameGenerator(this.beanNameGenerator);
		}
		if (this.resourceLoader != null) {
			loader.setResourceLoader(this.resourceLoader);
		}
		if (this.environment != null) {
			loader.setEnvironment(this.environment);
		}
		loader.load();
	}
346858
public void load(List<E> result) {
        ++pageCount;
        if (this.result == null || this.result.isEmpty()) {
            this.result = result;
        } else {
            this.result.addAll(result);
        }
    }
849944
public void load() {
        PluginDefinition definition = getDefinition();

        if (!initialized && definition != null) {
            BaseComponent top;

            try {
                initialized = true;
                top = container.getFirstChild();

                if (top == null) {
                    top = PageUtil.createPage(definition.getUrl(), container).get(0);
                }
            } catch (Throwable e) {
                container.destroyChildren();
                throw createChainedException("Initialize", e, null);
            }

            if (pluginControllers != null) {
                for (Object controller : pluginControllers) {
                    top.wireController(controller);
                }
            }

            findListeners(container);
            executeAction(PluginAction.LOAD, true);
        }
    }
1036697
public void initialize() {

        if (m_taskFuture != null) {
            m_taskFuture.cancel(false);
            m_taskFuture = null;
        }
        reload();
        m_taskFuture = OpenCms.getExecutor().scheduleWithFixedDelay(
            this::performUpdate,
            UPDATE_DELAY_MILLIS,
            UPDATE_DELAY_MILLIS,
            TimeUnit.MILLISECONDS);

    }
1357974
@Override
	public void load(UnitDaoFactory unitDaoFactory) {
		for (String query : queries) {
			unitDaoFactory.getUnitDao().execute(query);
		}
	}
1286895
@PostLoad
    public void postLoad() {
        if (principalAttributesRepository == null) {
            this.principalAttributesRepository = new DefaultPrincipalAttributesRepository();
        }
        if (consentPolicy == null) {
            this.consentPolicy = new DefaultRegisteredServiceConsentPolicy();
        }
    }
901454
@Override
    public void init(String webAppRfsPath, String servletMapping, String defaultWebApplication) {

        try {
            super.init(webAppRfsPath, servletMapping, defaultWebApplication);
            CmsUpdateInfo.INSTANCE.setAdeModuleVersion(getInstalledModules().get("org.opencms.ade.containerpage"));

            if (m_workplaceUpdateThread != null) {
                if (m_workplaceUpdateThread.isAlive()) {
                    m_workplaceUpdateThread.kill();
                }
                m_workplaceUpdateThread = null;
            }
            if (m_dbUpdateThread != null) {
                if (m_dbUpdateThread.isAlive()) {
                    m_dbUpdateThread.kill();
                }
                m_dbUpdateThread = null;
                m_newLoggingOffset = 0;
                m_oldLoggingOffset = 0;
            }
        } catch (Exception e) {
            e.printStackTrace();
            throw new RuntimeException(e);
        }
    }
884623
public void setLoading(boolean isLoading) {
        getSupportFragmentManager()
                .beginTransaction()
                .replace(R.id.root, isLoading ? loadingFragment : formFragment)
                .commit();
    }
709142
public synchronized void reload(boolean isStartup) {

        if ((OpenCms.getRunLevel() > OpenCms.RUNLEVEL_1_CORE_OBJECT)
            && OpenCms.getResourceManager().hasResourceType(TYPE_XML_BUNDLE)) {
            List<CmsResource> xmlBundles = Lists.newArrayList();
            List<CmsResource> propertyBundles = Lists.newArrayList();
            try {
                I_CmsResourceType xmlType = OpenCms.getResourceManager().getResourceType(TYPE_XML_BUNDLE);
                xmlBundles = m_cms.readResources("/", CmsResourceFilter.ALL.addRequireType(xmlType), true);
            } catch (Exception e) {
                logError(e, isStartup);
            }
            try {
                I_CmsResourceType propType = OpenCms.getResourceManager().getResourceType(TYPE_PROPERTIES_BUNDLE);
                propertyBundles = m_cms.readResources("/", CmsResourceFilter.ALL.addRequireType(propType), true);
            } catch (Exception e) {
                logError(e, isStartup);
            }
            try {

                synchronized (CmsResourceBundleLoader.class) {
                    CmsResourceBundleLoader.flushBundleCache();
                    for (String baseName : m_bundleBaseNames) {
                        CmsResourceBundleLoader.flushPermanentCache(baseName);
                    }
                    m_bundleBaseNames.clear();
                    for (CmsResource xmlBundle : xmlBundles) {
                        addXmlBundle(xmlBundle);
                    }
                    for (CmsResource propertyBundle : propertyBundles) {
                        addPropertyBundle(propertyBundle);
                    }
                    if (OpenCms.getWorkplaceManager() != null) {
                        OpenCms.getWorkplaceManager().flushMessageCache();
                    }
                }
            } catch (Exception e) {
                logError(e, isStartup);
            }
        }
    }
461912
public void onStartup() {
        try {
            preloadCaches();
            SpringAppContext.getInstance().loadPackageContexts();  // trigger dynamic context loading
            preloadDynamicCaches();
            // implementor cache relies on kotlin from preloadDynamicCaches()
            ImplementorCache implementorCache = new ImplementorCache();
            implementorCache.loadCache();
            allCaches.put(ImplementorCache.class.getSimpleName(), implementorCache);
        }
        catch (Exception ex){
            String message = "Failed to load caches";
            logger.severeException(message, ex);
            throw new StartupException(message, ex);
        }
    }
34890
Class<?> loadClass(String requestedClass, boolean initialize) throws ClassNotFoundException {
    String binaryName = requestedClass;
    while (true) {
      try {
        return Class.forName(binaryName, initialize, classLoader);
      } catch (ClassNotFoundException e) {
        if (!binaryName.contains(".")) {
          throw e;
        } else {
          binaryName = replaceLastPeriodWithDollar(binaryName);
        }
      }
    }
  }
267727
protected void init() {

        // initialize OpenCms access objects
        CmsFlexController controller = CmsFlexController.getController(pageContext.getRequest());
        m_cms = controller.getCmsObject();

        int startLevel = m_startLevel == null ? Integer.MIN_VALUE : Integer.parseInt(m_startLevel);
        int endLevel = m_endLevel == null ? Integer.MIN_VALUE : Integer.parseInt(m_endLevel);

        // load navigation bean in the JSP context
        CmsJspNavigationBean bean = new CmsJspNavigationBean(
            m_cms,
            m_type,
            startLevel,
            endLevel,
            m_resource,
            m_param,
            m_locale);
        storeAttribute(getVar(), bean);
    }