public abstract class AbstractFileReleaseProvider extends DefaultReleaseProvider
| Constructor and Description |
|---|
AbstractFileReleaseProvider()
Default Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.apache.commons.configuration.Configuration config)
Configures the provider.
|
protected abstract void |
loadReleases(File file)
Loads the releases.
|
addRelease, getReleases, releaseExists, removeReleasepublic AbstractFileReleaseProvider()
public void configure(org.apache.commons.configuration.Configuration config)
throws org.apache.commons.configuration.ConfigurationException
You can allow loading releases directly from configuration as parent class
DefaultReleaseProvider does by setting element <ignoreConfigReleases>
to false. The default behaviour is to ignore all releases mentioned in
the configuration object but loading all from the external file.
Release information in external files always takes precedence over configured information.
configure in interface Configurableconfigure in class DefaultReleaseProviderconfig - - configuration objectorg.apache.commons.configuration.ConfigurationException - - when configuration failsprotected abstract void loadReleases(File file) throws org.apache.commons.configuration.ConfigurationException
file - - file to load releases fromorg.apache.commons.configuration.ConfigurationException - - if an error occursCopyright © 2012. All Rights Reserved.