@Singleton @Named(value="properties") public class PropertiesReleaseDescriptorStore extends Object implements ReleaseDescriptorStore
Constructor and Description |
---|
PropertiesReleaseDescriptorStore(MavenCrypto mavenCrypto) |
Modifier and Type | Method and Description |
---|---|
void |
delete(ReleaseDescriptor config)
Remove a configuration.
|
ReleaseDescriptorBuilder |
read(File file)
read.
|
ReleaseDescriptorBuilder |
read(ReleaseDescriptorBuilder mergeDescriptor)
Read a configuration.
|
ReleaseDescriptorBuilder |
read(ReleaseDescriptorBuilder mergeDescriptor,
File file)
read.
|
void |
write(ReleaseDescriptor config)
Save a configuration.
|
void |
write(ReleaseDescriptorBuilder.BuilderReleaseDescriptor config,
File file)
write.
|
@Inject public PropertiesReleaseDescriptorStore(MavenCrypto mavenCrypto)
public ReleaseDescriptorBuilder read(ReleaseDescriptorBuilder mergeDescriptor) throws ReleaseDescriptorStoreException
ReleaseDescriptorStore
read
in interface ReleaseDescriptorStore
mergeDescriptor
- configuration to merge with the loaded configuration. Some values are used as defaults,
while others are used to overrideReleaseDescriptorStoreException
- if any.public ReleaseDescriptorBuilder read(File file) throws ReleaseDescriptorStoreException
read.
file
- a File
objectReleaseDescriptorBuilder
objectReleaseDescriptorStoreException
- if any.public ReleaseDescriptorBuilder read(ReleaseDescriptorBuilder mergeDescriptor, File file) throws ReleaseDescriptorStoreException
read.
mergeDescriptor
- a ReleaseDescriptorBuilder
objectfile
- a File
objectReleaseDescriptorBuilder
objectReleaseDescriptorStoreException
- if any.public void write(ReleaseDescriptor config) throws ReleaseDescriptorStoreException
ReleaseDescriptorStore
write
in interface ReleaseDescriptorStore
config
- the configurationReleaseDescriptorStoreException
- if any.public void delete(ReleaseDescriptor config)
ReleaseDescriptorStore
delete
in interface ReleaseDescriptorStore
config
- the location of the configurationpublic void write(ReleaseDescriptorBuilder.BuilderReleaseDescriptor config, File file) throws ReleaseDescriptorStoreException
write.
config
- a ReleaseDescriptorBuilder.BuilderReleaseDescriptor
objectfile
- a File
objectReleaseDescriptorStoreException
- if any.Copyright © 2002–2024 The Apache Software Foundation. All rights reserved.