|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.shared.app.configuration.DefaultMavenAppConfiguration
public class DefaultMavenAppConfiguration
Load and store the configuration. No synchronization is used, but it is unnecessary as the old configuration object can continue to be used.
Field Summary | |
---|---|
private Configuration |
configuration
The configuration that has been converted. |
private static java.lang.String |
KEY
|
private org.codehaus.plexus.registry.Registry |
registry
Plexus registry to read the configuration from. |
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)
|
Configuration |
getConfiguration()
Get the configuration from the store. |
void |
initialize()
|
void |
save(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 |
Field Detail |
---|
private org.codehaus.plexus.registry.Registry registry
private Configuration configuration
private static final java.lang.String KEY
Constructor Detail |
---|
public DefaultMavenAppConfiguration()
Method Detail |
---|
public Configuration getConfiguration()
MavenAppConfiguration
getConfiguration
in interface MavenAppConfiguration
public void save(Configuration configuration) throws org.codehaus.plexus.registry.RegistryException
MavenAppConfiguration
save
in interface MavenAppConfiguration
configuration
- the configuration to store
org.codehaus.plexus.registry.RegistryException
public void addChangeListener(org.codehaus.plexus.registry.RegistryListener listener)
MavenAppConfiguration
addChangeListener
in interface MavenAppConfiguration
listener
- the listenerpublic void initialize() throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
initialize
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
public void beforeConfigurationChange(org.codehaus.plexus.registry.Registry registry, java.lang.String propertyName, java.lang.Object propertyValue)
beforeConfigurationChange
in interface org.codehaus.plexus.registry.RegistryListener
public void afterConfigurationChange(org.codehaus.plexus.registry.Registry registry, java.lang.String propertyName, java.lang.Object propertyValue)
afterConfigurationChange
in interface org.codehaus.plexus.registry.RegistryListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |