public abstract class BaseGetConfigSourceConfigurationCommand<C extends ConfigSourceConfiguration> extends Object implements AdminCommand
| Modifier and Type | Field and Description |
|---|---|
protected org.glassfish.hk2.api.ServiceLocator |
habitat |
| Constructor and Description |
|---|
BaseGetConfigSourceConfigurationCommand() |
| Modifier and Type | Method and Description |
|---|---|
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
|
protected Map<String,Object> |
getConfigSourceConfiguration(C configuration) |
protected Map<String,Object> |
getConfigSourceProperties(C configuration)
Get a camelcase version of
getConfigSourceConfiguration(ConfigSourceConfiguration). |
protected String |
listConfiguration(C configuration) |
public BaseGetConfigSourceConfigurationCommand()
public void execute(AdminCommandContext context)
AdminCommandexecute in interface AdminCommandcontext - informationprotected String listConfiguration(C configuration)
configuration - the configuration to print#getConfigSourceConfiguration(PayaraConfigSourceConfiguration)protected Map<String,Object> getConfigSourceConfiguration(C configuration)
configuration - the configuration to get properties fromprotected Map<String,Object> getConfigSourceProperties(C configuration)
getConfigSourceConfiguration(ConfigSourceConfiguration). By default
will call getConfigSourceConfiguration(ConfigSourceConfiguration) and
convert the keys to camel casing. Override if the result of this method is
wrong.configuration - the configuration to get properties fromCopyright © 2021. All rights reserved.