Class Services
java.lang.Object
se.itssimple.obsidianweave.services.Services
Service loader for platform helpers in Obsidian Weave.
Provides access to platform-specific config and item helpers.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IPlatformItemHelperThe platform item helper loaded for the current environment.static final IPlatformConfigHelperThe platform config helper loaded for the current environment. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
PLATFORMHELPER
The platform config helper loaded for the current environment. -
ITEMHELPER
The platform item helper loaded for the current environment.
-
-
Constructor Details
-
Services
public Services()
-
-
Method Details
-
load
Loads a service implementation for the given class.- Type Parameters:
T- The type of the service.- Parameters:
clazz- The class to load the service for.- Returns:
- The loaded service implementation.
- Throws:
NullPointerException- if no implementation is found.
-