public abstract class BaseGetNotifierConfigurationCommand<C extends PayaraNotifierConfiguration> extends Object implements AdminCommand
Modifier and Type | Field and Description |
---|---|
protected org.glassfish.hk2.api.ServiceLocator |
habitat |
Constructor and Description |
---|
BaseGetNotifierConfigurationCommand() |
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> |
getNotifierConfiguration(C configuration) |
protected Map<String,Object> |
getNotifierProperties(C configuration)
Get a camelcase version of
getNotifierConfiguration(PayaraNotifierConfiguration) . |
protected String |
listConfiguration(C configuration) |
public void execute(AdminCommandContext context)
AdminCommand
execute
in interface AdminCommand
context
- informationprotected String listConfiguration(C configuration)
configuration
- the configuration to printgetNotifierConfiguration(PayaraNotifierConfiguration)
protected Map<String,Object> getNotifierConfiguration(C configuration)
configuration
- the configuration to get properties fromprotected Map<String,Object> getNotifierProperties(C configuration)
getNotifierConfiguration(PayaraNotifierConfiguration)
. By default
will call getNotifierConfiguration(PayaraNotifierConfiguration)
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.