public interface Application
Modifier and Type | Method and Description |
---|---|
String[] |
getArguments()
Returns the command-line arguments given to the application.
|
Coffig |
getConfiguration()
Get the application configuration.
|
<T> ClassConfiguration<T> |
getConfiguration(Class<T> someClass)
Get the configuration properties of the specified class.
|
String |
getId()
Get the organization-wide unique identifier of the application.
|
Map<String,String> |
getKernelParameters()
Returns the kernel parameters given to the application.
|
String |
getName()
Get the full human-readable name of the application.
|
File |
getStorageLocation(String context)
Get the application storage location.
|
String |
getVersion()
Get the version of the application.
|
boolean |
isStorageEnabled() |
String |
substituteWithConfiguration(String value)
Substitute any ${...} expression in the given string with the configuration values.
|
String getName()
String getId()
String getVersion()
File getStorageLocation(String context)
context
- The storage context.boolean isStorageEnabled()
Coffig getConfiguration()
Coffig
object of the whole application configuration.<T> ClassConfiguration<T> getConfiguration(Class<T> someClass)
someClass
- the class to get the configuration from.ClassConfiguration
object containing all configuration properties for the class.String substituteWithConfiguration(String value)
value
- the string to substitute.Map<String,String> getKernelParameters()
String[] getArguments()
Copyright © 2013-2018–2019 SeedStack. All rights reserved.