/** * @see org.opencms.repository.A_CmsRepository#initConfiguration() */ @Override public void initConfiguration() throws CmsConfigurationException { CmsParameterConfiguration config = getConfiguration(); List<I_CmsResourceWrapper> wrapperObjects = CmsRepositoryManager.createResourceWrappersFromConfiguration( config, PARAM_WRAPPER, LOG); m_wrappers = Collections.unmodifiableList(wrapperObjects); super.initConfiguration(); }
/** * Initializes a configuration after all parameters have been added.<p> * * @throws CmsConfigurationException if something goes wrong */ public void initConfiguration() throws CmsConfigurationException { m_repositoryList = Collections.unmodifiableList(m_repositoryList); Iterator iter = m_repositoryList.iterator(); while (iter.hasNext()) { A_CmsRepository rep = (A_CmsRepository)iter.next(); m_repositoryMap.put(rep.getName(), rep); if (CmsLog.INIT.isInfoEnabled()) { CmsLog.INIT.info(Messages.get().getBundle().key( Messages.INIT_ADD_REPOSITORY_2, rep.getClass().getName(), rep.getName())); } rep.initConfiguration(); } m_frozen = true; if (CmsLog.INIT.isInfoEnabled()) { CmsLog.INIT.info(Messages.get().getBundle().key(Messages.INIT_REPOSITORY_CONFIG_FINISHED_0)); } }