org.apache.maven.shared.app.configuration
Class DefaultMavenAppConfiguration

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogEnabled
      extended by org.apache.maven.shared.app.configuration.DefaultMavenAppConfiguration
All Implemented Interfaces:
MavenAppConfiguration, org.codehaus.plexus.logging.LogEnabled, org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable, org.codehaus.plexus.registry.RegistryListener

public class DefaultMavenAppConfiguration
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements MavenAppConfiguration, org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable, org.codehaus.plexus.registry.RegistryListener

Load and store the configuration. No synchronization is used, but it is unnecessary as the old configuration object can continue to be used.

Author:
Brett Porter

Constructor Summary
DefaultMavenAppConfiguration()
           
 
Method Summary
 void addChangeListener(org.codehaus.plexus.registry.RegistryListener listener)
          Add a configuration change listener.
 void afterConfigurationChange(org.codehaus.plexus.registry.Registry registry, java.lang.String propertyName, java.lang.Object propertyValue)
           
 void beforeConfigurationChange(org.codehaus.plexus.registry.Registry registry, java.lang.String propertyName, java.lang.Object propertyValue)
           
 org.apache.maven.shared.app.configuration.Configuration getConfiguration()
          Get the configuration from the store.
 void initialize()
           
 void save(org.apache.maven.shared.app.configuration.Configuration configuration)
          Save the configuration to the registry.
 
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

DefaultMavenAppConfiguration

public DefaultMavenAppConfiguration()
Method Detail

getConfiguration

public org.apache.maven.shared.app.configuration.Configuration getConfiguration()
Description copied from interface: MavenAppConfiguration
Get the configuration from the store. A cached version may be used.

Specified by:
getConfiguration in interface MavenAppConfiguration
Returns:
the configuration

save

public void save(org.apache.maven.shared.app.configuration.Configuration configuration)
          throws org.codehaus.plexus.registry.RegistryException
Description copied from interface: MavenAppConfiguration
Save the configuration to the registry.

Specified by:
save in interface MavenAppConfiguration
Parameters:
configuration - the configuration to store
Throws:
org.codehaus.plexus.registry.RegistryException

addChangeListener

public void addChangeListener(org.codehaus.plexus.registry.RegistryListener listener)
Description copied from interface: MavenAppConfiguration
Add a configuration change listener.

Specified by:
addChangeListener in interface MavenAppConfiguration
Parameters:
listener - the listener

initialize

public void initialize()
                throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
Specified by:
initialize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
Throws:
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException

beforeConfigurationChange

public void beforeConfigurationChange(org.codehaus.plexus.registry.Registry registry,
                                      java.lang.String propertyName,
                                      java.lang.Object propertyValue)
Specified by:
beforeConfigurationChange in interface org.codehaus.plexus.registry.RegistryListener

afterConfigurationChange

public void afterConfigurationChange(org.codehaus.plexus.registry.Registry registry,
                                     java.lang.String propertyName,
                                     java.lang.Object propertyValue)
Specified by:
afterConfigurationChange in interface org.codehaus.plexus.registry.RegistryListener


Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.