public synchronized void initialize() {

        LOG.info("Initializing inheritance group cache: " + m_name);
        if (m_taskFuture != null) {
            // in case initialize has been called before on this object, cancel the existing task
            m_taskFuture.cancel(false);
            m_taskFuture = null;
        }
        if (m_cms.existsResource("/", CmsResourceFilter.IGNORE_EXPIRATION)) {
            try {
                List<CmsResource> resources = m_cms.readResources(
                    "/",
                    CmsResourceFilter.IGNORE_EXPIRATION.addRequireType(
                        OpenCms.getResourceManager().getResourceType(
                            CmsResourceTypeXmlContainerPage.INHERIT_CONTAINER_CONFIG_TYPE_NAME)),
                    true);
                m_state = new CmsContainerConfigurationCacheState(load(resources).values());
            } catch (Exception e) {
                LOG.error(e.getLocalizedMessage(), e);
            }
        }
        Runnable updateAction = new Runnable() {

            public void run() {

                try {
                    flushUpdates();
                } catch (Throwable e) {
                    LOG.error(e.getLocalizedMessage(), e);
                }
            }
        };
        m_taskFuture = OpenCms.getExecutor().scheduleWithFixedDelay(
            updateAction,
            UPDATE_INTERVAL_MILLIS,
            UPDATE_INTERVAL_MILLIS,
            TimeUnit.MILLISECONDS);
    }
public synchronized void initialize ( ) { LOG . info ( "Initializing inheritance group cache: " + m_name ) ; if ( m_taskFuture != null ) { m_taskFuture . cancel ( false ) ; m_taskFuture = null ; } if ( m_cms . existsResource ( "/" , CmsResourceFilter . IGNORE_EXPIRATION ) ) { try { List < CmsResource > resources = m_cms . readResources ( "/" , CmsResourceFilter . IGNORE_EXPIRATION . addRequireType ( OpenCms . getResourceManager ( ) . getResourceType ( CmsResourceTypeXmlContainerPage . INHERIT_CONTAINER_CONFIG_TYPE_NAME ) ) , true ) ; m_state = new CmsContainerConfigurationCacheState ( load ( resources ) . values ( ) ) ; } catch ( Exception e ) { LOG . error ( e . getLocalizedMessage ( ) , e ) ; } } Runnable updateAction = new Runnable ( ) { public void run ( ) { try { flushUpdates ( ) ; } catch ( Throwable e ) { LOG . error ( e . getLocalizedMessage ( ) , e ) ; } } } ; m_taskFuture = OpenCms . getExecutor ( ) . scheduleWithFixedDelay ( updateAction , UPDATE_INTERVAL_MILLIS , UPDATE_INTERVAL_MILLIS , TimeUnit . MILLISECONDS ) ; }
Initializes the cache.<p>