Interface ContextManager

  • All Known Implementing Classes:
    ContextManagerImpl

    public interface ContextManager
    Manages all Context objects for sites
    Since:
    4.0.0
    Author:
    joseross
    • Method Detail

      • getContext

        org.craftercms.core.service.Context getContext​(String siteId)
        Returns the context for the given site, creating it if needed
        Parameters:
        siteId - the id of the site
        Returns:
        the context
      • destroyContext

        void destroyContext​(String siteId)
        Destroys the context for the given site
        Parameters:
        siteId - the id of the site