java.lang.Object
tech.guilhermekaua.spigotboot.inventoryapi.internal.registry.RegisteredView

@Internal public final class RegisteredView extends Object
Immutable registration record of one view class: the singleton instance and the frozen config its onInit produced at registration time.
  • Constructor Details

    • RegisteredView

      public RegisteredView(@NotNull @NotNull Class<? extends View> type, @NotNull @NotNull View instance, @NotNull @NotNull ViewConfig config)
      Creates the registration record.
      Parameters:
      type - the registered view class
      instance - the view singleton
      config - the frozen registration-time config
  • Method Details

    • type

      @NotNull public @NotNull Class<? extends View> type()
      Returns the registered view class.
      Returns:
      the view class
    • instance

      @NotNull public @NotNull View instance()
      Returns the view singleton.
      Returns:
      the view instance
    • config

      @NotNull public @NotNull ViewConfig config()
      Returns the frozen registration-time config; per-open overrides are merged onto a copy by the open phase, never onto this instance.
      Returns:
      the immutable view config