Class BaseSetNotifierConfigurationCommand<C extends PayaraNotifierConfiguration>
- java.lang.Object
-
- fish.payara.internal.notification.admin.BaseSetNotifierConfigurationCommand<C>
-
- All Implemented Interfaces:
AdminCommand
- Direct Known Subclasses:
SetCDIEventbusNotifierConfigurationCommand
,SetEventbusNotifierConfigurationCommand
,SetJmsNotifierConfigurationCommand
,SetLogNotifierConfiguration
public abstract class BaseSetNotifierConfigurationCommand<C extends PayaraNotifierConfiguration> extends Object implements AdminCommand
The base admin command to set the configuration of a specified notifier. Extend this class to configure custom notifier configuration options from @Param injected fields.- Author:
- Matthew Gill, mertcaliskan
-
-
Constructor Summary
Constructors Constructor Description BaseSetNotifierConfigurationCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
applyValues(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
-
-
-
Method Detail
-
execute
public void execute(AdminCommandContext context)
Description copied from interface:AdminCommand
Executes the command with the command parameters passed as Properties where the keys are the parameter names and the values are the parameter values- Specified by:
execute
in interfaceAdminCommand
- Parameters:
context
- information
-
applyValues
protected void applyValues(C configuration) throws PropertyVetoException
Configure the configuration ConfigBeanProxy from the @Param injected class fields.- Parameters:
configuration
- the ConfigBeanProxy to configure- Throws:
PropertyVetoException
- an exception thrown if the property doesn't pass the configured validation.
-
configureDynamically
protected void configureDynamically(C configuration)
Called after static configuration if the dynamic field is enabled and this instance is the one selected.
-
-