Class ConfigurationExtensionFactory

java.lang.Object
org.jboss.as.controller.persistence.ConfigurationExtensionFactory

public class ConfigurationExtensionFactory extends Object
The factory in charge with loading the first ConfigurationExtension found.
Author:
Emmanuel Hugonnet (c) 2021 Red Hat, Inc.
  • Constructor Details

    • ConfigurationExtensionFactory

      public ConfigurationExtensionFactory()
  • Method Details

    • isConfigurationExtensionSupported

      public static boolean isConfigurationExtensionSupported()
      Returns true if a configuration extension is loaded - false otherwise.
      Returns:
      true if a configuration extension is loaded - false otherwise.
    • getCommandLineInstructions

      public static String getCommandLineInstructions()
      Returns the command line instructions.
      Returns:
      the command line instructions.
    • getCommandLineUsageArguments

      public static String[] getCommandLineUsageArguments()
      The command line usage arguments.
      Returns:
      the command line usage arguments.
    • commandLineContainsArgument

      public static boolean commandLineContainsArgument(String arg)
      Checks if the the argument is is one of those required by this configuration extension.
      Parameters:
      arg - : the current command line argument.
      Returns:
      true if the argument is one of those required by this configuration extension - false otherwise.
    • createConfigurationExtension

      public static ConfigurationExtension createConfigurationExtension(Path... files)
      Create the instance of ConfigurationExtension built from the supplemental configuration files.
      Parameters:
      files - : the supplemental configuration files.
      Returns:
      the instance of ConfigurationExtension built from the supplemental configuration files.