|
BeanIO 1.2.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.beanio.config.DefaultConfigurationFactory
public class DefaultConfigurationFactory
Default configuration factory implementation.
Constructor Summary | |
---|---|
DefaultConfigurationFactory()
Constructs a new DefaultConfigurationFactory. |
Method Summary | |
---|---|
protected StreamDefinitionFactory |
createStreamDefinitionFactory(String format)
Instantiates the factory implementation to create the stream definition. |
protected Collection<StreamDefinition> |
createStreamDefinitions(BeanIOConfig config)
Creates stream definitions from a BeanIO stream mapping configuration. |
ConfigurationLoader |
getConfigurationLoader()
Returns the mapping configuration loader. |
protected ConfigurationLoader |
getDefaultConfigurationLoader()
Returns the default mapping configuration loader implementation. |
Collection<StreamDefinition> |
loadDefinitions(InputStream in)
Loads a stream mapping configuration from an input stream. |
void |
setConfigurationLoader(ConfigurationLoader configurationLoader)
Sets the mapping configuration loader. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultConfigurationFactory()
Method Detail |
---|
public Collection<StreamDefinition> loadDefinitions(InputStream in) throws IOException, BeanIOConfigurationException
ConfigurationFactory
loadDefinitions
in interface ConfigurationFactory
in
- the input stream to read
IOException
- if an I/O error occurs
BeanIOConfigurationException
- if the configuration is invalidprotected ConfigurationLoader getDefaultConfigurationLoader()
protected Collection<StreamDefinition> createStreamDefinitions(BeanIOConfig config) throws BeanIOConfigurationException
config
- the BeanIO stream mapping configuration
BeanIOConfigurationException
- if a configuration setting is invalidprotected StreamDefinitionFactory createStreamDefinitionFactory(String format)
format
- the stream format
public ConfigurationLoader getConfigurationLoader()
public void setConfigurationLoader(ConfigurationLoader configurationLoader)
configurationLoader
- the mapping configuration loader
|
BeanIO 1.2.3 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |