Class YamlConfigurationExtension
- java.lang.Object
-
- org.jboss.as.controller.persistence.yaml.YamlConfigurationExtension
-
- All Implemented Interfaces:
ConfigurationExtension
public class YamlConfigurationExtension extends Object implements ConfigurationExtension
- Author:
- Emmanuel Hugonnet (c) 2021 Red Hat, Inc.
-
-
Constructor Summary
Constructors Constructor Description YamlConfigurationExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
commandLineContainsArgument(String arg)
Checks if the argument is one of those required for this configuration extension.String
getCommandLineInstructions()
Returns the command line instructions.String[]
getCommandLineUsageArguments()
Returns the command line usage arguments to be displayed for help.ConfigurationExtension
load(Path... files)
Loads supplemental configurations.void
processOperations(ImmutableManagementResourceRegistration rootRegistration, List<ParsedBootOp> postExtensionOps)
Process the already defined boot operations to update them with the supplemnetal configurations.boolean
shouldProcessOperations(RunningMode mode)
Checks if the configuration extension should process the supplemental configurations.
-
-
-
Method Detail
-
load
public ConfigurationExtension load(Path... files)
Description copied from interface:ConfigurationExtension
Loads supplemental configurations.- Specified by:
load
in interfaceConfigurationExtension
- Parameters:
files
- the paths to files with supplemental configuration.- Returns:
- the configuration extension.
-
shouldProcessOperations
public boolean shouldProcessOperations(RunningMode mode)
Description copied from interface:ConfigurationExtension
Checks if the configuration extension should process the supplemental configurations.- Specified by:
shouldProcessOperations
in interfaceConfigurationExtension
- Parameters:
mode
- : the running mode of the server.- Returns:
- true if the configuration extension should process operations - false otherwise.
-
processOperations
public void processOperations(ImmutableManagementResourceRegistration rootRegistration, List<ParsedBootOp> postExtensionOps)
Description copied from interface:ConfigurationExtension
Process the already defined boot operations to update them with the supplemnetal configurations.- Specified by:
processOperations
in interfaceConfigurationExtension
- Parameters:
rootRegistration
- : metamodel.postExtensionOps
- : initial boot oerations.
-
getCommandLineUsageArguments
public String[] getCommandLineUsageArguments()
Description copied from interface:ConfigurationExtension
Returns the command line usage arguments to be displayed for help.- Specified by:
getCommandLineUsageArguments
in interfaceConfigurationExtension
- Returns:
- the command line usage arguments to be displayed for help.
-
commandLineContainsArgument
public boolean commandLineContainsArgument(String arg)
Description copied from interface:ConfigurationExtension
Checks if the argument is one of those required for this configuration extension.- Specified by:
commandLineContainsArgument
in interfaceConfigurationExtension
- Parameters:
arg
- : the command line or one of its argument.- Returns:
- true if the argument is one of those required by this configuration extension - false otherwise.
-
getCommandLineInstructions
public String getCommandLineInstructions()
Description copied from interface:ConfigurationExtension
Returns the command line instructions.- Specified by:
getCommandLineInstructions
in interfaceConfigurationExtension
- Returns:
- the command line instructions.
-
-