Class PolyglotProperties.PolyglotPropertiesFactory

java.lang.Object
org.refcodes.properties.PolyglotProperties.PolyglotPropertiesFactory
All Implemented Interfaces:
org.refcodes.mixin.FilenameSuffixesAccessor, ResourcePropertiesFactory
Enclosing class:
PolyglotProperties

public static class PolyglotProperties.PolyglotPropertiesFactory extends Object implements ResourcePropertiesFactory
The PolyglotProperties.PolyglotPropertiesFactory is a meta factory using a collection of ResourcePropertiesFactory instances to deliver ResourceProperties instances. In case a properties file for a filename was not found, then the according factories filename extension (FilenameSuffixesAccessor.getFilenameSuffixes()) is append to the filename and probing is repeated. Any factory method such as toProperties(Map), toProperties(Object), toProperties(Properties) or toProperties(PropertiesBuilder) will return ResourceProperties created by the first added ResourcePropertiesFactory instance.