T - Config class that represents the configuration of the Application.public interface Application<T extends Config>
| Modifier and Type | Method and Description |
|---|---|
void |
configure(ApplicationConfigurer configurer,
ApplicationContext<T> context)
Configures the Application.
|
default boolean |
isUpdateSupported()
Returns if application supports config update or not.
|
default ApplicationUpdateResult<T> |
updateConfig(ApplicationUpdateContext applicationUpdateContext)
Updates application configuration based on config and update actions inside
applicationUpdateContext.
|
void configure(ApplicationConfigurer configurer, ApplicationContext<T> context)
configurer - Collects the Application configurationcontext - Used to access the environment, application configuration, and application
(deployment) argumentsdefault boolean isUpdateSupported()
default ApplicationUpdateResult<T> updateConfig(ApplicationUpdateContext applicationUpdateContext) throws Exception
applicationUpdateContext - Used to access methods helpful for operations like
upgrading plugin version for config.ApplicationUpdateResult object for the config update operation.UnsupportedOperationException - if application does not support config update
operation.Exception - if there was an exception during update of app config. This exception
will often wrap the actual exception.Copyright © 2024 Cask Data, Inc. Licensed under the Apache License, Version 2.0.