Package org.opencms.xml.containerpage
Class CmsConfigurationFileFinder
java.lang.Object
org.opencms.xml.containerpage.CmsConfigurationFileFinder
Helper class for locating configuration files by looking up their location in properties of another resource.
- Since:
- 8.0.0
-
Constructor Summary
ConstructorDescriptionCmsConfigurationFileFinder
(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. -
Method Summary
Modifier and TypeMethodDescriptiongetConfigurationFile
(CmsObject cms, String containerPageUri) Returns the configuration file to use.
-
Constructor Details
-
CmsConfigurationFileFinder
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 Details
-
getConfigurationFile
Returns the configuration file to use.- Parameters:
cms
- the current cms contextcontainerPageUri
- the container page uri- Returns:
- the configuration file to use, or
null
if not found
-