Class CachingPropertiesManagerImpl

    • Constructor Detail

      • CachingPropertiesManagerImpl

        public CachingPropertiesManagerImpl()
    • Method Detail

      • invalidate

        public void invalidate​(String canonicalPath)
        Description copied from class: PropertiesManagerImpl
        Invalidate a cached document based on the canonical path of a properties document, or invalidate all if the path is null.
        Specified by:
        invalidate in interface PropertiesManager
        Overrides:
        invalidate in class PropertiesManagerImpl
        Parameters:
        canonicalPath - the path of a properties document, relative to the base bean, or null.
      • getPropertiesBean

        protected PropertiesBean getPropertiesBean​(org.hippoecm.hst.content.beans.standard.HippoBean location,
                                                   String path,
                                                   Locale locale)
        Description copied from class: PropertiesManagerImpl
        Get a serializable PropertiesBean by location, path and locale.
        Overrides:
        getPropertiesBean in class PropertiesManagerImpl
        Parameters:
        location - default location where to find properties beans
        path - path relative to the location for a particular bean
        locale - locale by which to find linked properties documents
        Returns:
        Serializable cacheable properties bean, based on a properties document
      • storeInCache

        protected void storeInCache​(String canonicalKey,
                                    String localeKey,
                                    PropertiesBean propertiesBean)
        Store a properties bean in cache.
      • createCanonicalKey

        protected String createCanonicalKey​(org.hippoecm.hst.content.beans.standard.HippoBean location,
                                            String path)
                                     throws javax.jcr.RepositoryException
        Create a key for a location an a relative path of a properties document.
        Throws:
        javax.jcr.RepositoryException