Uses of Class
org.apache.commons.configuration2.ex.ConfigurationException
Packages that use ConfigurationException
Package
Description
The Configuration main package.
This package contains the implementations of configuration builder classes used to create new
Configuration objects.
A package containing the implementation of the builder for combined configurations.
This package defines a fluent API for setting up fully configured configuration builders.
A package with classes related to I/O operations.
Configuration classes supporting NeXT / OpenStep /GNUStep style configuration.
-
Uses of ConfigurationException in org.apache.commons.configuration2
Fields in org.apache.commons.configuration2 with type parameters of type ConfigurationExceptionModifier and TypeFieldDescriptionstatic final ConfigurationConsumer<ConfigurationException> PropertiesConfiguration.DEFAULT_INCLUDE_LISTENERDefines default error handling for the special"include"key by throwing the given exception.static final ConfigurationConsumer<ConfigurationException> PropertiesConfiguration.NOOP_INCLUDE_LISTENERDefines error handling as a noop for the special"include"key.Methods in org.apache.commons.configuration2 that return types with arguments of type ConfigurationExceptionModifier and TypeMethodDescriptionPropertiesConfiguration.getIncludeListener()Gets the current include listener, never null.Method parameters in org.apache.commons.configuration2 with type arguments of type ConfigurationExceptionModifier and TypeMethodDescriptionvoidPropertiesConfiguration.setIncludeListener(ConfigurationConsumer<ConfigurationException> includeListener) Sets the current include listener, may not be null.Methods in org.apache.commons.configuration2 that throw ConfigurationExceptionModifier and TypeMethodDescriptionvoidPerforms this operation on the given argument.protected TransformerXMLConfiguration.createTransformer()Creates and initializes the transformer used for save operations.voidvoidPropertiesConfigurationLayout.load(PropertiesConfiguration config, Reader reader) Reads a properties file and stores its internal structure.voidParses a DOM element containing the properties.voidLoad the configuration from the given reader.voidJSONConfiguration.read(InputStream in) Loads the configuration from the given input stream.voidvoidvoidReads the content of this object from the given reader.voidXMLConfiguration.read(InputStream in) Loads the configuration from the given input stream.voidLoads the configuration from the given reader.voidvoidYAMLConfiguration.read(InputStream in) Loads the configuration from the given input stream.voidYAMLConfiguration.read(InputStream in, org.yaml.snakeyaml.LoaderOptions options) voidvoidvoidPropertiesConfigurationLayout.save(PropertiesConfiguration config, Writer writer) Writes the properties file to the given writer, preserving as much of its structure as possible.static voidSystemConfiguration.setSystemProperties(String fileName) Sets system properties from a file specified by its file name.static voidSystemConfiguration.setSystemProperties(String basePath, String fileName) Sets system properties from a file specified using its base path and file name.voidXMLConfiguration.validate()Validate the document against the Schema.voidSave the configuration to the specified writer.voidvoidvoidWrites the content of this object to the given writer.voidSaves the configuration to the specified writer.voidXMLConfiguration.write(Writer writer, Transformer transformer) Saves the configuration to the specified writer.voidvoidConstructors in org.apache.commons.configuration2 that throw ConfigurationExceptionModifierConstructorDescriptionXMLPropertiesConfiguration(Element element) Creates and loads the XML properties from the specified DOM node. -
Uses of ConfigurationException in org.apache.commons.configuration2.builder
Method parameters in org.apache.commons.configuration2.builder with type arguments of type ConfigurationExceptionModifier and TypeMethodDescriptionPropertiesBuilderParametersImpl.setIncludeListener(ConfigurationConsumer<ConfigurationException> includeListener) default TPropertiesBuilderProperties.setIncludeListener(ConfigurationConsumer<ConfigurationException> includeListener) Sets the current include listener, may be null.Methods in org.apache.commons.configuration2.builder that throw ConfigurationExceptionModifier and TypeMethodDescriptionDefaultReloadingDetectorFactory.createReloadingDetector(FileHandler handler, FileBasedBuilderParametersImpl params) ReloadingDetectorFactory.createReloadingDetector(FileHandler handler, FileBasedBuilderParametersImpl params) Creates a newReloadingDetectorobject based on the passed in parameters.protected ReloadingDetectorReloadingFileBasedConfigurationBuilder.createReloadingDetector(FileHandler handler, FileBasedBuilderParametersImpl fbparams) Creates aReloadingDetectorwhich monitors the passed inFileHandler.protected TBasicConfigurationBuilder.createResult()Creates a new, initialized result object.protected BeanDeclarationBasicConfigurationBuilder.createResultDeclaration(Map<String, Object> params) Creates a newBeanDeclarationwhich is used for creating new result objects dynamically.protected TBasicConfigurationBuilder.createResultInstance()Creates the new, uninitialized result object.BasicConfigurationBuilder.getConfiguration()Gets the configuration provided by this builder.ConfigurationBuilder.getConfiguration()Gets the configuration provided by this builder.protected final BeanDeclarationBasicConfigurationBuilder.getResultDeclaration()Gets theBeanDeclarationthat is used to create and initialize result objects.protected voidFileBasedConfigurationBuilder.initFileHandler(FileHandler handler) Initializes the new currentFileHandler.protected voidReloadingFileBasedConfigurationBuilder.initFileHandler(FileHandler handler) Initializes the new currentFileHandler.protected voidBasicConfigurationBuilder.initResultInstance(T obj) Initializes a newly created result object.protected voidFileBasedConfigurationBuilder.initResultInstance(T obj) Initializes a newly created result object.voidFileBasedConfigurationBuilder.save()Convenience method which saves the associated configuration. -
Uses of ConfigurationException in org.apache.commons.configuration2.builder.combined
Methods in org.apache.commons.configuration2.builder.combined that throw ConfigurationExceptionModifier and TypeMethodDescriptionprotected voidCombinedConfigurationBuilder.configureEntityResolver(HierarchicalConfiguration<?> config, XMLBuilderParametersImpl xmlParams) Creates and initializes a defaultEntityResolverif the definition configuration contains a corresponding declaration.protected FileBasedConfigurationBuilder<T> MultiFileConfigurationBuilder.createInitializedManagedBuilder(String fileName, Map<String, Object> params) Creates a fully initialized builder for a managed configuration.protected FileBasedConfigurationBuilder<T> MultiFileConfigurationBuilder.createManagedBuilder(String fileName, Map<String, Object> params) Creates a builder for a managed configuration.protected FileBasedConfigurationBuilder<T> ReloadingMultiFileConfigurationBuilder.createManagedBuilder(String fileName, Map<String, Object> params) Creates a builder for a managed configuration.protected ReloadingControllerReloadingCombinedConfigurationBuilder.createReloadingController()Creates theReloadingControllerfor this builder.protected BeanDeclarationCombinedConfigurationBuilder.createResultDeclaration(Map<String, Object> params) Creates a newBeanDeclarationwhich is used for creating new result objects dynamically.protected StringBaseConfigurationBuilderProvider.determineBuilderClass(ConfigurationDeclaration decl) Determines the name of the class to be used for a new builder instance.protected StringBaseConfigurationBuilderProvider.determineConfigurationClass(ConfigurationDeclaration decl, Collection<BuilderParameters> params) Determines the name of the configuration class produced by the builder.protected StringFileExtensionConfigurationBuilderProvider.determineConfigurationClass(ConfigurationDeclaration decl, Collection<BuilderParameters> params) Determines the name of the configuration class produced by the builder.MultiFileConfigurationBuilder.getConfiguration()Gets the configuration provided by this builder.ReloadingCombinedConfigurationBuilder.getConfiguration()Gets the configuration provided by this builder.ConfigurationBuilder<? extends Configuration> BaseConfigurationBuilderProvider.getConfigurationBuilder(ConfigurationDeclaration decl) Gets the builder for the configuration source managed by this provider.ConfigurationBuilder<? extends Configuration> ConfigurationBuilderProvider.getConfigurationBuilder(ConfigurationDeclaration decl) Gets the builder for the configuration source managed by this provider.ConfigurationBuilder<? extends Configuration> MultiFileConfigurationBuilderProvider.getConfigurationBuilder(ConfigurationDeclaration decl) Gets the builder for the configuration source managed by this provider.ConfigurationBuilder<? extends HierarchicalConfiguration<?>> CombinedConfigurationBuilder.getDefinitionBuilder()Gets theConfigurationBuilderwhich creates the definition configuration.protected HierarchicalConfiguration<?> CombinedConfigurationBuilder.getDefinitionConfiguration()Gets the configuration containing the definition of the combined configuration to be created.MultiFileConfigurationBuilder.getManagedBuilder()Gets the managedFileBasedConfigurationBuilderfor the current file name pattern.ConfigurationBuilder<? extends Configuration> CombinedConfigurationBuilder.getNamedBuilder(String name) Gets the configuration builder with the given name.protected FileSystemCombinedConfigurationBuilder.initFileSystem(HierarchicalConfiguration<?> config) Creates and initializes a defaultFileSystemif the definition configuration contains a corresponding declaration.protected voidCombinedConfigurationBuilder.initResultInstance(CombinedConfiguration result) Initializes a newly created result object.protected voidReloadingCombinedConfigurationBuilder.initResultInstance(CombinedConfiguration result) Initializes a newly created result object.protected voidCombinedConfigurationBuilder.initSystemProperties(HierarchicalConfiguration<?> config, String basePath) Handles a file with system properties that may be defined in the definition configuration.protected voidCombinedConfigurationBuilder.registerConfiguredLookups(HierarchicalConfiguration<?> defConfig, Configuration resultConfig) Processes customLookupobjects that might be declared in the definition configuration.protected ConfigurationBuilder<? extends HierarchicalConfiguration<?>> CombinedConfigurationBuilder.setupDefinitionBuilder(Map<String, Object> params) Obtains theConfigurationBuilderobject which provides access to the configuration containing the definition of the combined configuration to create. -
Uses of ConfigurationException in org.apache.commons.configuration2.builder.fluent
Methods in org.apache.commons.configuration2.builder.fluent that throw ConfigurationExceptionModifier and TypeMethodDescriptionCreates aCombinedConfigurationinstance from the content of the given file.Creates aCombinedConfigurationinstance from the content of the file identified by the given path.Creates aCombinedConfigurationinstance from the content of the given URL.<T extends FileBasedConfiguration>
TCreates an instance of the specified file-based configuration class from the content of the given file.<T extends FileBasedConfiguration>
TCreates an instance of the specified file-based configuration class from the content of the file identified by the given path.<T extends FileBasedConfiguration>
TCreates an instance of the specified file-based configuration class from the content of the given URL.Creates aINIConfigurationinstance from the content of the given file.Creates aINIConfigurationinstance from the content of the file identified by the given path.Creates aINIConfigurationinstance from the content of the given URL.Configurations.properties(File file) Creates aPropertiesConfigurationinstance from the content of the given file.Configurations.properties(String path) Creates aPropertiesConfigurationinstance from the content of the file identified by the given path.Configurations.properties(URL url) Creates aPropertiesConfigurationinstance from the content of the given URL.Creates aXMLConfigurationinstance from the content of the given file.Creates aXMLConfigurationinstance from the content of the file identified by the given path.Creates aXMLConfigurationinstance from the content of the given URL. -
Uses of ConfigurationException in org.apache.commons.configuration2.io
Methods in org.apache.commons.configuration2.io that throw ConfigurationExceptionModifier and TypeMethodDescriptionDefaultFileSystem.getInputStream(URL url) DefaultFileSystem.getInputStream(URL url, URLConnectionOptions urlConnectionOptions) abstract InputStreamFileSystem.getInputStream(URL url) Gets an input stream for a URL.FileSystem.getInputStream(URL url, URLConnectionOptions urlConnectionOptions) Not abstract for binary compatibility.VFSFileSystem.getInputStream(URL url) DefaultFileSystem.getOutputStream(File file) DefaultFileSystem.getOutputStream(URL url) abstract OutputStreamFileSystem.getOutputStream(File file) Gets an output stream for a File.abstract OutputStreamFileSystem.getOutputStream(URL url) Gets an output stream for a URL.VFSFileSystem.getOutputStream(URL url) voidFileHandler.load()Loads the associated file from the underlying location.voidLoads the associated file from the specifiedFile.voidFileHandler.load(InputStream in) Loads the associated file from the specified stream, using the encoding returned byFileHandler.getEncoding().voidFileHandler.load(InputStream in, String encoding) Loads the associated file from the specified stream, using the specified encoding.voidLoads the associated file from the specified reader.voidLoads the associated file from the given file name.voidLoads the associated file from the specified URL.static URLFileLocatorUtils.locateOrThrow(FileLocator locator) Tries to locate the file referenced by the passed inFileLocator.voidReads the content of this object from the given reader.voidInputStreamSupport.read(InputStream in) Reads the content of this object from the specifiedInputStream.voidFileHandler.save()Saves the associated file to the current location set for this object.voidSaves the associated file to the specifiedFile.voidFileHandler.save(OutputStream out) Saves the associated file to the specified stream using the encoding returned byFileHandler.getEncoding().voidFileHandler.save(OutputStream out, String encoding) Saves the associated file to the specified stream using the specified encoding.voidSaves the associated file to the givenWriter.voidSaves the associated file to the specified file name.voidSaves the associated file to the specified URL.voidWrites the content of this object to the given writer. -
Uses of ConfigurationException in org.apache.commons.configuration2.plist
Methods in org.apache.commons.configuration2.plist that throw ConfigurationException