| java.lang.Object org.kuali.core.util.properties.KualiPropertiesFactory
KualiPropertiesFactory | public class KualiPropertiesFactory (Code) | | This class assembles a PropertyHolder containing all Properties from a set of PropertySources listed in an XML configuration
file.
|
Inner Class :public static class FilePropertySourceFactory extends AbstractObjectCreationFactory | |
Inner Class :public static class PropertyHolderBuilder | |
KualiPropertiesFactory | public KualiPropertiesFactory(String configurationFileName)(Code) | | Constructor with ConfigurationFile Name passed
Parameters: configurationFileName - The path to the configuration file throws: IllegalArgumentException - if the configurationFileName is blank |
getConfigurationFileName | public String getConfigurationFileName()(Code) | | name of the configurationFile |
getProperties | public PropertyHolder getProperties(PropertyHolder startingProperties)(Code) | | Load the XML configuration file, processes all of the (known) PropertySources declared in that file, and returns a
PropertyHolder containing all of the properties from all of those sources.
Parameters: startingProperties - a PropertyHolder containing predefined properties, which will be used as the starting point for thereturned PropertyHolder; may be null a PropertyHolder containing all properties from all sources listed in the config file throws: DuplicateKeyException - if any source defines a key which has already been defined by an earlier source throws: PropertiesException - if the config file can't be loaded, or if a PropertySource can't load its properties |
setupDigesterInstance | protected void setupDigesterInstance(Digester digester, String matchString, ObjectCreationFactory factory)(Code) | | Sets up digester rules used to process the config file. Should be called once for each distinct PropertySource tag/type.
Parameters: digester - the current digester Parameters: matchString - the pattern to match with this rule Parameters: factory - an ObjectCreationFactory instance to use for creating new objects |
|
|