org.apache.maven.embedder
Interface Configuration

All Known Implementing Classes:
DefaultConfiguration

public interface Configuration

Configuration of embedder, used when starting up.

Author:
mkleint, Jason van Zyl

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 globalSettingsFiles)
          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 userSettingsFile)
          Set location of the userSettingsFile settings file to use for the embedder.
 

Method Detail

setUserSettingsFile

Configuration setUserSettingsFile(java.io.File userSettingsFile)
Set location of the userSettingsFile settings file to use for the embedder.


getUserSettingsFile

java.io.File getUserSettingsFile()

setGlobalSettingsFile

Configuration setGlobalSettingsFile(java.io.File globalSettingsFiles)
Set location of the globalSettingsFiles settings file to use for the embedder.


getGlobalSettingsFile

java.io.File getGlobalSettingsFile()

setLocalRepository

Configuration setLocalRepository(java.io.File localRepository)
This overrides anything set in a settings file.


getLocalRepository

java.io.File getLocalRepository()

setMavenEmbedderLogger

Configuration setMavenEmbedderLogger(MavenEmbedderLogger logger)

getMavenEmbedderLogger

MavenEmbedderLogger getMavenEmbedderLogger()

getClassWorld

org.codehaus.plexus.classworlds.ClassWorld getClassWorld()

setClassWorld

Configuration setClassWorld(org.codehaus.plexus.classworlds.ClassWorld classWorld)

setClassLoader

Configuration setClassLoader(java.lang.ClassLoader loader)

getParentContainer

org.codehaus.plexus.PlexusContainer getParentContainer()

setParentContainer

Configuration setParentContainer(org.codehaus.plexus.PlexusContainer parentContainer)

addActiveProfile

Configuration addActiveProfile(java.lang.String profile)
Add profile to activate.


addInactiveProfile

Configuration addInactiveProfile(java.lang.String profile)
Add profile to inactivate.


addActiveProfiles

Configuration addActiveProfiles(java.util.List profiles)
Add a list of String instances with names of profiles to activate.


addInactiveProfiles

Configuration addInactiveProfiles(java.util.List profiles)
Add a list of String instances with names of profiles to inactivate.


setConfigurationCustomizer

Configuration setConfigurationCustomizer(ContainerCustomizer customizer)
Set a customizer callback implemetation that will be given a chance to modify the plexus container on startup.


setSystemProperties

Configuration setSystemProperties(java.util.Properties properties)
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.


getActiveProfiles

java.util.List getActiveProfiles()

getInactiveProfiles

java.util.List getInactiveProfiles()

getContainerCustomizer

ContainerCustomizer getContainerCustomizer()

getSystemProperties

java.util.Properties getSystemProperties()

addExtension

void addExtension(java.net.URL url)

getExtensions

java.util.List getExtensions()

setRealmManager

Configuration setRealmManager(MavenRealmManager realmManager)

getRealmManager

MavenRealmManager getRealmManager()

setErrorReporter

Configuration setErrorReporter(CoreErrorReporter errorReporter)

getErrorReporter

CoreErrorReporter getErrorReporter()

addEventMonitor

Configuration addEventMonitor(EventMonitor eventMonitor)

setEventMonitors

Configuration setEventMonitors(java.util.List eventMonitors)

getEventMonitors

java.util.List getEventMonitors()


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