public abstract class BaseSetConfigSourceConfigurationCommand<C extends ConfigSourceConfiguration> extends Object implements AdminCommand
Modifier and Type | Field and Description |
---|---|
protected Boolean |
dynamic |
protected Boolean |
enabled |
protected Logger |
logger |
protected ServerEnvironment |
server |
protected String |
target |
protected Target |
targetUtil |
Constructor and Description |
---|
BaseSetConfigSourceConfigurationCommand() |
Modifier and Type | Method and Description |
---|---|
protected void |
applyValues(ActionReport report,
C configuration)
Configure the configuration ConfigBeanProxy from the @Param injected class
fields.
|
protected void |
configureDynamically(C configuration)
Called after static configuration if the dynamic field is enabled and this
instance is the one selected.
|
void |
execute(AdminCommandContext context)
Executes the command with the command parameters passed as Properties
where the keys are the parameter names and the values are the parameter values
|
@Inject protected Target targetUtil
@Inject protected ServerEnvironment server
@Inject protected Logger logger
protected String target
protected Boolean dynamic
protected Boolean enabled
public BaseSetConfigSourceConfigurationCommand()
public void execute(AdminCommandContext context)
AdminCommand
execute
in interface AdminCommand
context
- informationprotected void applyValues(ActionReport report, C configuration) throws PropertyVetoException
configuration
- the ConfigBeanProxy to configurePropertyVetoException
- an exception thrown if the property doesn't
pass the configured validation.protected void configureDynamically(C configuration)
Copyright © 2021. All rights reserved.