|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.maven.mae.boot.embed.MAEEmbedder
@Component(role=MAEEmbedder.class) public class MAEEmbedder
The core of the embeddable Maven environment. This class is used as the main interface to the embedded Maven
environment for the application developer. The only other interface is component-instance injection, available
through the configuration of AbstractMAEApplication subclasses.
| Method Summary | |
|---|---|
protected void |
checkStopped()
|
protected void |
doExecutionStarting()
|
String |
encryptMasterPassword(MAEExecutionRequest request)
Encrypt the master password that's used to decrypt settings information such as server passwords. |
String |
encryptPassword(MAEExecutionRequest request)
Encrypt a password that will be put in the settings.xml file, as for server authentication. |
org.apache.maven.execution.MavenExecutionResult |
execute(MAEExecutionRequest request)
Execute a Maven build, using the normal request/response paradigm. |
int |
formatErrorOutput(MAEExecutionRequest request,
org.apache.maven.execution.MavenExecutionResult result)
Print error output from a Maven execution request, in the familiar format, to the Logger instance used by
this embedder. |
protected void |
injectEnvironment(MAEExecutionRequest request)
|
protected void |
injectFromProperties(MAEExecutionRequest request)
|
protected void |
injectLogSettings(MAEExecutionRequest request)
|
com.google.inject.Injector |
injector()
|
protected void |
injectProperties(MAEExecutionRequest request)
|
protected void |
injectSettings(MAEExecutionRequest request)
|
protected void |
logSummary(org.apache.maven.exception.ExceptionSummary summary,
Map<String,String> references,
String indent,
boolean showErrors)
|
protected void |
printInfo(MAEExecutionRequest request)
|
MAEServiceManager |
serviceManager()
Retrieve the MAEServiceManager that was initialized to work with this embedded Maven environment. |
static void |
showInfo(MAEConfiguration config,
List<MAELibraryLoader> loaders,
PrintStream standardOut)
Print information about the MAELibrary instances loaded into this environment to the PrintStream
parameter. |
static void |
showVersion(MAEConfiguration config,
List<MAELibraryLoader> loaders,
PrintStream standardOut)
Print the information about MAELibrary instances loaded, along with version information about this Maven
environment in general, to the provided PrintStream parameter. |
void |
shutdown()
Perform any shutdown functions associated with this embedder and its component environment. |
Map<Object,Throwable> |
wire(Object... instances)
Wire a series of externally managed objects with components from the Maven environment, according to component annotations in those instances. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public com.google.inject.Injector injector()
throws MAEEmbeddingException
MAEEmbeddingException
public Map<Object,Throwable> wire(Object... instances)
throws MAEEmbeddingException
MAEEmbeddingExceptionprotected void checkStopped()
public MAEServiceManager serviceManager()
MAEServiceManager that was initialized to work with this embedded Maven environment.
public org.apache.maven.execution.MavenExecutionResult execute(MAEExecutionRequest request)
throws MAEEmbeddingException
MAEEmbeddingException
public String encryptMasterPassword(MAEExecutionRequest request)
throws MAEEmbeddingException
MAEEmbeddingException
public String encryptPassword(MAEExecutionRequest request)
throws MAEEmbeddingException
MAEEmbeddingException
protected void doExecutionStarting()
throws MAEEmbeddingException
MAEEmbeddingExceptionpublic void shutdown()
protected void injectEnvironment(MAEExecutionRequest request)
throws MAEEmbeddingException
MAEEmbeddingExceptionprotected void injectFromProperties(MAEExecutionRequest request)
protected void injectLogSettings(MAEExecutionRequest request)
protected void injectProperties(MAEExecutionRequest request)
protected void injectSettings(MAEExecutionRequest request)
throws MAEEmbeddingException
MAEEmbeddingException
public static void showInfo(MAEConfiguration config,
List<MAELibraryLoader> loaders,
PrintStream standardOut)
throws IOException
MAELibrary instances loaded into this environment to the PrintStream
parameter.
IOException
public static void showVersion(MAEConfiguration config,
List<MAELibraryLoader> loaders,
PrintStream standardOut)
throws IOException
MAELibrary instances loaded, along with version information about this Maven
environment in general, to the provided PrintStream parameter.
IOExceptionprotected void printInfo(MAEExecutionRequest request)
public int formatErrorOutput(MAEExecutionRequest request,
org.apache.maven.execution.MavenExecutionResult result)
Logger instance used by
this embedder.
protected void logSummary(org.apache.maven.exception.ExceptionSummary summary,
Map<String,String> references,
String indent,
boolean showErrors)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||