Interface ContextManager

All Known Implementing Classes:
ContextManagerImpl

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

    Modifier and Type
    Method
    Description
    void
    Destroys the context for the given site
    org.craftercms.core.service.Context
    Returns the context for the given site, creating it if needed
  • Method Details

    • 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