|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.yarn.boot.app.AbstractClientApplication<T>
T - the type of a sub-classpublic abstract class AbstractClientApplication<T extends AbstractClientApplication<T>>
Base class for client applications.
| Field Summary | |
|---|---|
protected String |
applicationBaseDir
|
protected String |
applicationVersion
|
protected Properties |
appProperties
|
protected List<String> |
profiles
|
protected List<Object> |
sources
|
| Constructor Summary | |
|---|---|
AbstractClientApplication()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String applicationVersion
protected String applicationBaseDir
protected List<Object> sources
protected List<String> profiles
protected Properties appProperties
| Constructor Detail |
|---|
public AbstractClientApplication()
| Method Detail |
|---|
public T applicationVersion(String applicationVersion)
applicationVersion - the application version
public T applicationBaseDir(String applicationBaseDir)
applicationBaseDir - the applications base directory
public T sources(Object... sources)
SpringApplication.
sources - the additional sources for Spring Application
public T profiles(String... profiles)
SpringApplication.
profiles - the additional profiles for Spring Application
public 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 properties
protected abstract T getThis()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||