T - the type of a sub-classpublic abstract class AbstractClientApplication<T extends AbstractClientApplication<T>> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
applicationBaseDir |
protected String |
applicationVersion |
protected Properties |
appProperties |
protected List<String> |
profiles |
protected List<Object> |
sources |
| Constructor and Description |
|---|
AbstractClientApplication() |
| Modifier and Type | Method and Description |
|---|---|
T |
applicationBaseDir(String applicationBaseDir)
Sets an Applications base directory to be used by a builder.
|
T |
applicationVersion(String applicationVersion)
Sets an application version to be used by a builder.
|
T |
appProperties(Properties appProperties)
Sets application properties which will be passed into a Spring Boot
environment.
|
protected abstract T |
getThis()
Gets the instance of this defined by a sub-class.
|
T |
profiles(String... profiles)
Sets an additional profiles to be used when running
an
SpringApplication. |
T |
sources(Object... sources)
Sets an additional sources to by used when running
an
SpringApplication. |
protected String applicationVersion
protected String applicationBaseDir
protected Properties appProperties
public T applicationVersion(String applicationVersion)
applicationVersion - the application versionpublic T applicationBaseDir(String applicationBaseDir)
applicationBaseDir - the applications base directorypublic T sources(Object... sources)
SpringApplication.sources - the additional sources for Spring Applicationpublic T profiles(String... profiles)
SpringApplication.profiles - the additional profiles for Spring Applicationpublic T appProperties(Properties appProperties)
Effectively this means that these properties allow to override all
existing properties but still doesn't override properties based on
command-line arguments. Command-line arguments in this context are the
ones passed to run method in a sub-class.
appProperties - the app propertiesprotected abstract T getThis()