Class CmsConfigurationFileFinder


  • public class CmsConfigurationFileFinder
    extends java.lang.Object
    Helper class for locating configuration files by looking up their location in properties of another resource.

    Since:
    8.0.0
    • Constructor Summary

      Constructors 
      Constructor Description
      CmsConfigurationFileFinder​(java.lang.String propertyName)
      Creates a new configuration file finder which expects the location of configuration files to be stored in the property with the given name.
    • Constructor Detail

      • CmsConfigurationFileFinder

        public CmsConfigurationFileFinder​(java.lang.String propertyName)
        Creates a new configuration file finder which expects the location of configuration files to be stored in the property with the given name.

        Parameters:
        propertyName - the name of the property which should contain the configuration file path
    • Method Detail

      • getConfigurationFile

        public CmsResource getConfigurationFile​(CmsObject cms,
                                                java.lang.String containerPageUri)
        Returns the configuration file to use.

        Parameters:
        cms - the current cms context
        containerPageUri - the container page uri
        Returns:
        the configuration file to use, or null if not found