/** * Add an OpenCms event listener that listens to all events.<p> * * @param listener the listener to add */ public void addCmsEventListener(I_CmsEventListener listener) { addCmsEventListener(listener, null); }
/** * Add a cms event listener that listens to all events.<p> * * @param listener the listener to add */ public void addCmsEventListener(I_CmsEventListener listener) { addCmsEventListener(listener, null); }
/** * Installs this instance as an event listener.<p> */ public void install() { OpenCms.getEventManager().addCmsEventListener( this, new int[] { I_CmsEventListener.EVENT_CLEAR_CACHES, I_CmsEventListener.EVENT_CLEAR_OFFLINE_CACHES, I_CmsEventListener.EVENT_CLEAR_ONLINE_CACHES}); }
/** * Add a cms event listener that listens to all events.<p> * * @param listener the listener to add */ public static void addCmsEventListener(I_CmsEventListener listener) { OpenCmsCore.getInstance().getEventManager().addCmsEventListener(listener); }
/** * Registers the 'clear caches' event listener.<p> */ private static synchronized void registerListener() { if (!m_listenerRegistered) { OpenCms.getEventManager().addCmsEventListener( new CmsIconUtil(), new int[] {I_CmsEventListener.EVENT_CLEAR_CACHES}); m_listenerRegistered = true; } }
/** * Add a cms event listener that listens only to particular events.<p> * * @param listener the listener to add * @param eventTypes the events to listen for */ public static void addCmsEventListener(I_CmsEventListener listener, int[] eventTypes) { OpenCmsCore.getInstance().getEventManager().addCmsEventListener(listener, eventTypes); }
/** * Add a cms event listener that listens to all events.<p> * * @param listener the listener to add */ public static void addCmsEventListener(I_CmsEventListener listener) { OpenCmsCore.getInstance().getEventManager().addCmsEventListener(listener); }
/** * Add a cms event listener that listens only to particular events.<p> * * @param listener the listener to add * @param eventTypes the events to listen for */ public static void addCmsEventListener(I_CmsEventListener listener, int[] eventTypes) { OpenCmsCore.getInstance().getEventManager().addCmsEventListener(listener, eventTypes); }
/** * Creates a new instance.<p> * * @param cms the CMS context to use */ public CmsVfsBundleManager(CmsObject cms) { m_cms = cms; m_bundleBaseNames = new HashSet<String>(); CmsVfsResourceBundle.setCmsObject(cms); OpenCms.getEventManager().addCmsEventListener( this, new int[] {I_CmsEventListener.EVENT_PUBLISH_PROJECT, I_CmsEventListener.EVENT_CLEAR_CACHES}); // immediately load all bundles for the first time reload(true); }
handler.addCache(m_offlineFormatterCache, m_onlineFormatterCache, "formatter configuration cache"); handler.addCache(m_offlineDetailIdCache, m_onlineDetailIdCache, "Detail ID cache"); OpenCms.getEventManager().addCmsEventListener(handler); CmsLog.INIT.info(". Done initializing the ADE configuration."); m_initStatus = Status.initialized;