public class XmlConfigurationLoader extends Object implements ConfigurationLoader
XmlMappingParser
, for
which a new instance is created for each input stream that requires parsing.Constructor and Description |
---|
XmlConfigurationLoader(ClassLoader classLoader)
Constructs a new XmlConfigurationLoader.
|
Modifier and Type | Method and Description |
---|---|
protected XmlMappingParser |
createParser()
Creates a
XmlMappingParser for reading an mapping input stream. |
protected XmlMappingReader |
getReader()
Returns the
XmlMappingReader for reading XML mapping files
into a document object model (DOM). |
Collection<BeanIOConfig> |
loadConfiguration(InputStream in,
Properties properties)
Loads a BeanIO configuration from an input stream.
|
public XmlConfigurationLoader(ClassLoader classLoader)
classLoader
- the ClassLoader
for loading imported resourcespublic Collection<BeanIOConfig> loadConfiguration(InputStream in, Properties properties) throws IOException, BeanIOConfigurationException
ConfigurationLoader
loadConfiguration
in interface ConfigurationLoader
in
- the input stream to read the configuration fromproperties
- the Properties
for expansion in the mapping fileIOException
- if an I/O error occursBeanIOConfigurationException
- if the configuration is invalid or malformedprotected XmlMappingParser createParser()
XmlMappingParser
for reading an mapping input stream.protected XmlMappingReader getReader()
XmlMappingReader
for reading XML mapping files
into a document object model (DOM).