public class DefaultReleaseProvider extends Object implements ReleaseProvider
| Constructor and Description |
|---|
DefaultReleaseProvider()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
addRelease(Release r)
Adds the release to the list of releases.
|
void |
configure(org.apache.commons.configuration.Configuration config)
Configures the provider.
|
Iterator<Release> |
getReleases()
Returns the releases from the XML configuration.
|
protected boolean |
releaseExists(Release r)
Tells whether the given release exists.
|
protected void |
removeRelease(Release r)
Removes a certain release from the list.
|
public void configure(org.apache.commons.configuration.Configuration config)
throws org.apache.commons.configuration.ConfigurationException
configure in interface Configurableconfig - - configuration objectorg.apache.commons.configuration.ConfigurationException - - when configuration failsprotected boolean addRelease(Release r)
r - - the release to add.protected boolean releaseExists(Release r)
r - - release to check for existenceprotected void removeRelease(Release r)
r - - release to removepublic Iterator<Release> getReleases()
getReleases in interface ReleaseProviderCopyright © 2012. All Rights Reserved.