org.apache.commons.configuration
Interface BasePathLoader

All Known Implementing Classes:
BasePathConfiguration, ConfigurationFactory, HierarchicalDOM4JConfiguration, HierarchicalDOMConfiguration

public interface BasePathLoader

Definition of an interface for objects that load configuration data from a URL.

The interface defines methods for getting and setting a base path. A file name will then be interpreted relative to this base path.

Version:
$Id: BasePathLoader.java,v 1.2 2004/02/27 17:41:35 epugh Exp $

Method Summary
 String getBasePath()
          Returns the base path.
 void setBasePath(String path)
          Sets the base path.
 

Method Detail

getBasePath

public String getBasePath()
Returns the base path. Relative path names will be resolved based on this path.

Returns:
the base path

setBasePath

public void setBasePath(String path)
Sets the base path. Relative path names will be resolved based on this path. For maximum flexibility this base path should be a URL.

Parameters:
path - the base path


Copyright © 2001-2004 The Apache Software Foundation. All Rights Reserved.