Interface ActionLoader


public interface ActionLoader
A loader for creating instances of Action based on configuration.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the key that defines the type of action.
    fr.maxlego08.menu.api.requirement.Action
    load(String path, TypedMapAccessor accessor, File file)
    Creates an instance of Action based on the provided configuration.
  • Method Details

    • getKey

      String getKey()
      Gets the key that defines the type of action.
      Returns:
      The key.
    • load

      fr.maxlego08.menu.api.requirement.Action load(String path, TypedMapAccessor accessor, File file)
      Creates an instance of Action based on the provided configuration.
      Parameters:
      path - The path in the configuration file.
      accessor - The map accessor containing the configuration elements.
      file - The file where the configuration is located.
      Returns:
      The created Action.