org.apache.maven.mae.boot.embed
Class MAEEmbedderBuilder
java.lang.Object
org.apache.maven.mae.boot.embed.MAEEmbedderBuilder
public class MAEEmbedderBuilder
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAEEmbedderBuilder
public MAEEmbedderBuilder()
withSettingsBuilder
public MAEEmbedderBuilder withSettingsBuilder(org.apache.maven.settings.building.SettingsBuilder settingsBuilder)
settingsBuilder
public org.apache.maven.settings.building.SettingsBuilder settingsBuilder()
throws MAEEmbeddingException
- Throws:
MAEEmbeddingException
withSecurityDispatcher
public MAEEmbedderBuilder withSecurityDispatcher(org.sonatype.plexus.components.sec.dispatcher.DefaultSecDispatcher securityDispatcher)
securityDispatcher
public org.sonatype.plexus.components.sec.dispatcher.DefaultSecDispatcher securityDispatcher()
throws MAEEmbeddingException
- Throws:
MAEEmbeddingException
withServiceManager
public MAEEmbedderBuilder withServiceManager(MAEServiceManager serviceManager)
serviceManager
public MAEServiceManager serviceManager()
throws MAEEmbeddingException
- Throws:
MAEEmbeddingException
withExecutionRequestPopulator
public MAEEmbedderBuilder withExecutionRequestPopulator(org.apache.maven.execution.MavenExecutionRequestPopulator executionRequestPopulator)
executionRequestPopulator
public org.apache.maven.execution.MavenExecutionRequestPopulator executionRequestPopulator()
throws MAEEmbeddingException
- Throws:
MAEEmbeddingException
withCoreClassLoader
public MAEEmbedderBuilder withCoreClassLoader(ClassLoader classLoader)
withCoreClassLoader
public MAEEmbedderBuilder withCoreClassLoader(ClassLoader root,
Object... constituents)
throws MalformedURLException
- Throws:
MalformedURLException
withClassWorld
public MAEEmbedderBuilder withClassWorld(org.codehaus.plexus.classworlds.ClassWorld classWorld)
coreClassLoader
public ClassLoader coreClassLoader()
classWorld
public org.codehaus.plexus.classworlds.ClassWorld classWorld()
withContainerConfiguration
public MAEEmbedderBuilder withContainerConfiguration(org.codehaus.plexus.ContainerConfiguration containerConfiguration)
containerConfiguration
public org.codehaus.plexus.ContainerConfiguration containerConfiguration()
withClassScanningEnabled
public MAEEmbedderBuilder withClassScanningEnabled(boolean classScanningEnabled)
isClassScanningEnabled
public boolean isClassScanningEnabled()
withMaven
public MAEEmbedderBuilder withMaven(org.apache.maven.Maven maven)
maven
public org.apache.maven.Maven maven()
throws MAEEmbeddingException
- Throws:
MAEEmbeddingException
withModelProcessor
public MAEEmbedderBuilder withModelProcessor(org.apache.maven.model.building.ModelProcessor modelProcessor)
modelProcessor
public org.apache.maven.model.building.ModelProcessor modelProcessor()
throws MAEEmbeddingException
- Throws:
MAEEmbeddingException
withContainer
public MAEEmbedderBuilder withContainer(MAEContainer container)
resetContainer
public void resetContainer()
container
public MAEContainer container()
throws MAEEmbeddingException
- Throws:
MAEEmbeddingException
selector
public ComponentSelector selector()
instanceRegistry
public InstanceRegistry instanceRegistry()
withConfiguration
public MAEEmbedderBuilder withConfiguration(MAEConfiguration config)
configuration
public MAEConfiguration configuration()
withServiceLibraryLoader
public MAEEmbedderBuilder withServiceLibraryLoader(boolean enabled)
isServiceLibraryLoaderUsed
public boolean isServiceLibraryLoaderUsed()
withLibraryLoader
public MAEEmbedderBuilder withLibraryLoader(MAELibraryLoader loader)
withLibraryLoader
public MAEEmbedderBuilder withLibraryLoader(MAELibraryLoader loader,
int offset)
libraryLoaders
public List<MAELibraryLoader> libraryLoaders()
withVersion
public MAEEmbedderBuilder withVersion(boolean showVersion)
showVersion
public boolean showVersion()
withLogFile
public MAEEmbedderBuilder withLogFile(File logFile)
logFile
public File logFile()
withQuietMode
public MAEEmbedderBuilder withQuietMode(boolean quiet)
shouldBeQuiet
public boolean shouldBeQuiet()
withDebugMode
public MAEEmbedderBuilder withDebugMode(boolean debug)
shouldShowDebug
public boolean shouldShowDebug()
withErrorMode
public MAEEmbedderBuilder withErrorMode(boolean showErrors)
shouldShowErrors
public boolean shouldShowErrors()
withStandardOut
public MAEEmbedderBuilder withStandardOut(PrintStream stdout)
standardOut
public PrintStream standardOut()
withStandardErr
public MAEEmbedderBuilder withStandardErr(PrintStream stderr)
standardErr
public PrintStream standardErr()
withStandardIn
public MAEEmbedderBuilder withStandardIn(InputStream stdin)
standardIn
public InputStream standardIn()
withLogger
public MAEEmbedderBuilder withLogger(org.codehaus.plexus.logging.Logger logger)
logger
public org.codehaus.plexus.logging.Logger logger()
mavenHome
public String mavenHome()
wireLogging
protected void wireLogging()
createEmbedder
protected MAEEmbedder createEmbedder()
throws MAEEmbeddingException
- Throws:
MAEEmbeddingException
build
public MAEEmbedder build()
throws MAEEmbeddingException
- Throws:
MAEEmbeddingException
withDebugLogHandles
public MAEEmbedderBuilder withDebugLogHandles(String[] debugLogHandles)
debugLogHandles
public String[] debugLogHandles()
Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.