org.apache.maven.embedder
Class DefaultConfiguration

java.lang.Object
  extended by org.apache.maven.embedder.DefaultConfiguration
All Implemented Interfaces:
Configuration

public class DefaultConfiguration
extends java.lang.Object
implements Configuration

Default implementation of Configuration intefrace.

Author:
mkleint

Constructor Summary
DefaultConfiguration()
          Creates a new instance of DefaultConfiguration
 
Method Summary
 Configuration addActiveProfile(java.lang.String profile)
          Add profile to activate.
 Configuration addActiveProfiles(java.util.List profiles)
          Add a list of String instances with names of profiles to activate.
 Configuration addEventMonitor(EventMonitor eventMonitor)
           
 void addExtension(java.net.URL url)
           
 Configuration addInactiveProfile(java.lang.String profile)
          Add profile to inactivate.
 Configuration addInactiveProfiles(java.util.List profiles)
          Add a list of String instances with names of profiles to inactivate.
 java.util.List getActiveProfiles()
           
 org.codehaus.plexus.classworlds.ClassWorld getClassWorld()
           
 ContainerCustomizer getContainerCustomizer()
           
 CoreErrorReporter getErrorReporter()
           
 java.util.List getEventMonitors()
           
 java.util.List getExtensions()
           
 java.io.File getGlobalSettingsFile()
           
 java.util.List getInactiveProfiles()
           
 java.io.File getLocalRepository()
           
 MavenEmbedderLogger getMavenEmbedderLogger()
           
 org.codehaus.plexus.PlexusContainer getParentContainer()
           
 MavenRealmManager getRealmManager()
           
 java.util.Properties getSystemProperties()
           
 java.io.File getUserSettingsFile()
           
 Configuration setClassLoader(java.lang.ClassLoader loader)
           
 Configuration setClassWorld(org.codehaus.plexus.classworlds.ClassWorld classWorld)
           
 Configuration setConfigurationCustomizer(ContainerCustomizer customizer)
          Set a customizer callback implemetation that will be given a chance to modify the plexus container on startup.
 Configuration setErrorReporter(CoreErrorReporter errorReporter)
           
 Configuration setEventMonitors(java.util.List eventMonitors)
           
 Configuration setGlobalSettingsFile(java.io.File global)
          Set location of the globalSettingsFiles settings file to use for the embedder.
 Configuration setLocalRepository(java.io.File localRepository)
          This overrides anything set in a settings file.
 Configuration setMavenEmbedderLogger(MavenEmbedderLogger logger)
           
 Configuration setParentContainer(org.codehaus.plexus.PlexusContainer parentContainer)
           
 Configuration setRealmManager(MavenRealmManager realmManager)
           
 Configuration setSystemProperties(java.util.Properties properties)
          set the system properties to be used during the lifecycle of the embedder.
 Configuration setUserSettingsFile(java.io.File user)
          Set location of the userSettingsFile settings file to use for the embedder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultConfiguration

public DefaultConfiguration()
Creates a new instance of DefaultConfiguration

Method Detail

addActiveProfile

public Configuration addActiveProfile(java.lang.String profile)
Description copied from interface: Configuration
Add profile to activate.

Specified by:
addActiveProfile in interface Configuration

addInactiveProfile

public Configuration addInactiveProfile(java.lang.String profile)
Description copied from interface: Configuration
Add profile to inactivate.

Specified by:
addInactiveProfile in interface Configuration

addActiveProfiles

public Configuration addActiveProfiles(java.util.List profiles)
Description copied from interface: Configuration
Add a list of String instances with names of profiles to activate.

Specified by:
addActiveProfiles in interface Configuration

addInactiveProfiles

public Configuration addInactiveProfiles(java.util.List profiles)
Description copied from interface: Configuration
Add a list of String instances with names of profiles to inactivate.

Specified by:
addInactiveProfiles in interface Configuration

getActiveProfiles

public java.util.List getActiveProfiles()
Specified by:
getActiveProfiles in interface Configuration

getInactiveProfiles

public java.util.List getInactiveProfiles()
Specified by:
getInactiveProfiles in interface Configuration

setUserSettingsFile

public Configuration setUserSettingsFile(java.io.File user)
Description copied from interface: Configuration
Set location of the userSettingsFile settings file to use for the embedder.

Specified by:
setUserSettingsFile in interface Configuration

setGlobalSettingsFile

public Configuration setGlobalSettingsFile(java.io.File global)
Description copied from interface: Configuration
Set location of the globalSettingsFiles settings file to use for the embedder.

Specified by:
setGlobalSettingsFile in interface Configuration

getUserSettingsFile

public java.io.File getUserSettingsFile()
Specified by:
getUserSettingsFile in interface Configuration

getGlobalSettingsFile

public java.io.File getGlobalSettingsFile()
Specified by:
getGlobalSettingsFile in interface Configuration

setConfigurationCustomizer

public Configuration setConfigurationCustomizer(ContainerCustomizer customizer)
Description copied from interface: Configuration
Set a customizer callback implemetation that will be given a chance to modify the plexus container on startup.

Specified by:
setConfigurationCustomizer in interface Configuration

getContainerCustomizer

public ContainerCustomizer getContainerCustomizer()
Specified by:
getContainerCustomizer in interface Configuration

setSystemProperties

public Configuration setSystemProperties(java.util.Properties properties)
Description copied from interface: Configuration
set the system properties to be used during the lifecycle of the embedder. Excluding the time when executing the project, then the properties from MavenExecutionRequestare used.

Specified by:
setSystemProperties in interface Configuration

getSystemProperties

public java.util.Properties getSystemProperties()
Specified by:
getSystemProperties in interface Configuration

addExtension

public void addExtension(java.net.URL url)
Specified by:
addExtension in interface Configuration

getExtensions

public java.util.List getExtensions()
Specified by:
getExtensions in interface Configuration

setMavenEmbedderLogger

public Configuration setMavenEmbedderLogger(MavenEmbedderLogger logger)
Specified by:
setMavenEmbedderLogger in interface Configuration

getMavenEmbedderLogger

public MavenEmbedderLogger getMavenEmbedderLogger()
Specified by:
getMavenEmbedderLogger in interface Configuration

getClassWorld

public org.codehaus.plexus.classworlds.ClassWorld getClassWorld()
Specified by:
getClassWorld in interface Configuration

setClassWorld

public Configuration setClassWorld(org.codehaus.plexus.classworlds.ClassWorld classWorld)
Specified by:
setClassWorld in interface Configuration

setClassLoader

public Configuration setClassLoader(java.lang.ClassLoader loader)
Specified by:
setClassLoader in interface Configuration

getParentContainer

public org.codehaus.plexus.PlexusContainer getParentContainer()
Specified by:
getParentContainer in interface Configuration

setParentContainer

public Configuration setParentContainer(org.codehaus.plexus.PlexusContainer parentContainer)
Specified by:
setParentContainer in interface Configuration

setLocalRepository

public Configuration setLocalRepository(java.io.File localRepository)
Description copied from interface: Configuration
This overrides anything set in a settings file.

Specified by:
setLocalRepository in interface Configuration

getLocalRepository

public java.io.File getLocalRepository()
Specified by:
getLocalRepository in interface Configuration

getRealmManager

public MavenRealmManager getRealmManager()
Specified by:
getRealmManager in interface Configuration

setRealmManager

public Configuration setRealmManager(MavenRealmManager realmManager)
Specified by:
setRealmManager in interface Configuration

getErrorReporter

public CoreErrorReporter getErrorReporter()
Specified by:
getErrorReporter in interface Configuration

setErrorReporter

public Configuration setErrorReporter(CoreErrorReporter errorReporter)
Specified by:
setErrorReporter in interface Configuration

addEventMonitor

public Configuration addEventMonitor(EventMonitor eventMonitor)
Specified by:
addEventMonitor in interface Configuration

getEventMonitors

public java.util.List getEventMonitors()
Specified by:
getEventMonitors in interface Configuration

setEventMonitors

public Configuration setEventMonitors(java.util.List eventMonitors)
Specified by:
setEventMonitors in interface Configuration


Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.