Class IIOServiceLoader
java.lang.Object
de.craftsblock.craftsnet.addon.services.builtin.IIOServiceLoader
- All Implemented Interfaces:
ServiceLoader<IIOServiceProvider>
A concrete implementation of the
ServiceLoader interface for managing instances of IIOServiceProvider.
This class specifically focuses on loading instances of IIOServiceProvider into the default
IIORegistry.- Since:
- 3.0.0-SNAPSHOT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanload(IIOServiceProvider provider) Loads anIIOServiceProviderinto the defaultIIORegistryfor further processing.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.craftsblock.craftsnet.addon.services.ServiceLoader
newInstance
-
Constructor Details
-
IIOServiceLoader
public IIOServiceLoader()
-
-
Method Details
-
load
Loads anIIOServiceProviderinto the defaultIIORegistryfor further processing.This method registers the provided
IIOServiceProviderinstance with the defaultIIORegistry. The registration allows subsequent retrieval and use of the service provider through the I/O registry.- Specified by:
loadin interfaceServiceLoader<IIOServiceProvider>- Parameters:
provider- The instance of theIIOServiceProviderto be loaded.- Returns:
- true if the provider is successfully loaded and registered, false otherwise.
-