org.apache.maven.shared.release.config
Class PropertiesReleaseDescriptorStore

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.apache.maven.shared.release.config.PropertiesReleaseDescriptorStore
All Implemented Interfaces:
ReleaseDescriptorStore, org.codehaus.plexus.logging.LogEnabled

public class PropertiesReleaseDescriptorStore
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements ReleaseDescriptorStore

Read and write release configuration and state from a properties file.

Author:
Brett Porter
Plexus component:
role:
"org.apache.maven.shared.release.config.ReleaseDescriptorStore"
role-hint:
"properties"

Field Summary
 
Fields inherited from interface org.apache.maven.shared.release.config.ReleaseDescriptorStore
ROLE
 
Constructor Summary
PropertiesReleaseDescriptorStore()
           
 
Method Summary
 void delete(ReleaseDescriptor config)
          Remove a configuration.
 ReleaseDescriptor read(File file)
           
 ReleaseDescriptor read(ReleaseDescriptor mergeDescriptor)
          Read a configuration.
 ReleaseDescriptor read(ReleaseDescriptor mergeDescriptor, File file)
           
 void write(ReleaseDescriptor config)
          Save a configuration.
 void write(ReleaseDescriptor config, File file)
           
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesReleaseDescriptorStore

public PropertiesReleaseDescriptorStore()
Method Detail

read

public ReleaseDescriptor read(ReleaseDescriptor mergeDescriptor)
                       throws ReleaseDescriptorStoreException
Description copied from interface: ReleaseDescriptorStore
Read a configuration.

Specified by:
read in interface ReleaseDescriptorStore
Parameters:
mergeDescriptor - configuration to merge with the loaded configuration. Some values are used as defaults, while others are used to override
Returns:
the configuration
Throws:
ReleaseDescriptorStoreException

read

public ReleaseDescriptor read(File file)
                       throws ReleaseDescriptorStoreException
Throws:
ReleaseDescriptorStoreException

read

public ReleaseDescriptor read(ReleaseDescriptor mergeDescriptor,
                              File file)
                       throws ReleaseDescriptorStoreException
Throws:
ReleaseDescriptorStoreException

write

public void write(ReleaseDescriptor config)
           throws ReleaseDescriptorStoreException
Description copied from interface: ReleaseDescriptorStore
Save a configuration.

Specified by:
write in interface ReleaseDescriptorStore
Parameters:
config - the configuration
Throws:
ReleaseDescriptorStoreException

delete

public void delete(ReleaseDescriptor config)
Description copied from interface: ReleaseDescriptorStore
Remove a configuration.

Specified by:
delete in interface ReleaseDescriptorStore
Parameters:
config - the location of the configuration

write

public void write(ReleaseDescriptor config,
                  File file)
           throws ReleaseDescriptorStoreException
Throws:
ReleaseDescriptorStoreException


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.