org.apache.maven.mae.boot.embed
Class MAEEmbedderBuilder

java.lang.Object
  extended by org.apache.maven.mae.boot.embed.MAEEmbedderBuilder

public class MAEEmbedderBuilder
extends Object


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

Constructor Detail

MAEEmbedderBuilder

public MAEEmbedderBuilder()
Method Detail

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.