public class CliEnvironment extends Object
ExecutableCliCommands.| Modifier and Type | Field and Description |
|---|---|
static PrintStream |
out |
| Constructor and Description |
|---|
CliEnvironment(org.springframework.context.ApplicationContext platformContext,
Properties cliConfig)
Creates a new
CliEnvironment. |
| Modifier and Type | Method and Description |
|---|---|
Properties |
getCliConfig()
Retrieves the cli configuration
|
org.springframework.context.ApplicationContext |
getContext()
Retrieves the
ApplicationContext. |
CoreService |
getCoreService()
Retrieves a
CoreService from the ApplicationContext. |
org.springframework.context.MessageSource |
getMessageSource() |
Properties |
getPlatformConfig()
Returns the appNG platform configuration.
|
String |
getResult()
Retrieves the result of a
ExecutableCliCommand-execution, which is a string to output on the console. |
void |
initPlatform(Properties defaultOverrides)
Initialized the appNG platform.
|
void |
setResult(String result)
Sets the result of a
ExecutableCliCommand-execution, which is a string to output on the console. |
public static PrintStream out
public CliEnvironment(org.springframework.context.ApplicationContext platformContext,
Properties cliConfig)
CliEnvironment.platformContext - the ApplicationContext usedcliConfig - the configuration read from
"/conf/appNG.properties"public void initPlatform(Properties defaultOverrides)
public Properties getPlatformConfig()
public CoreService getCoreService()
CoreService from the ApplicationContext.CoreServicepublic void setResult(String result)
ExecutableCliCommand-execution, which is a string to output on the console.result - the result to setpublic String getResult()
ExecutableCliCommand-execution, which is a string to output on the console.public org.springframework.context.ApplicationContext getContext()
ApplicationContext.ApplicationContextpublic Properties getCliConfig()
public org.springframework.context.MessageSource getMessageSource()
Copyright © 2011–2022 aiticon GmbH. All rights reserved.