Class RegisteredView
java.lang.Object
tech.guilhermekaua.spigotboot.inventoryapi.internal.registry.RegisteredView
Immutable registration record of one view class: the singleton instance and the frozen
config its
onInit produced at registration time.-
Constructor Summary
ConstructorsConstructorDescriptionRegisteredView(@NotNull Class<? extends View> type, @NotNull View instance, @NotNull ViewConfig config) Creates the registration record. -
Method Summary
Modifier and TypeMethodDescription@NotNull ViewConfigconfig()Returns the frozen registration-time config; per-open overrides are merged onto a copy by the open phase, never onto this instance.@NotNull Viewinstance()Returns the view singleton.type()Returns the registered view class.
-
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 classinstance- the view singletonconfig- the frozen registration-time config
-
-
Method Details
-
type
Returns the registered view class.- Returns:
- the view class
-
instance
Returns the view singleton.- Returns:
- the view instance
-
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
-