org.opencms.xml.containerpage
Class CmsConfigurationFileFinder

java.lang.Object
  extended by org.opencms.xml.containerpage.CmsConfigurationFileFinder

public class CmsConfigurationFileFinder
extends Object

Helper class for locating configuration files by looking up their location in properties of another resource.

Since:
8.0.0

Constructor Summary
CmsConfigurationFileFinder(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
 CmsResource getConfigurationFile(CmsObject cms, String containerPageUri)
          Returns the configuration file to use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsConfigurationFileFinder

public CmsConfigurationFileFinder(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,
                                        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