Class AutoLoader
java.lang.Object
dev.jaxydog.lodestone.api.AutoLoader
- All Implemented Interfaces:
Loaded
A class that automatically loads all of its registered static constants.
Extending classes should typically be marked as final, and only contain private inner classes and
public static final fields. They should always be singletons, with their only instance being loaded either
directly during initialization or indirectly through another AutoLoader.
- Since:
- 1.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.slf4j.LoggerThis loader's logger instance. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.jaxydog.lodestone.api.Loaded
getLoaderId
-
Field Details
-
logger
protected final org.slf4j.Logger loggerThis loader's logger instance.- Since:
- 1.0.0
-
-
Constructor Details
-
AutoLoader
public AutoLoader()
-
-
Method Details
-
register
-
register
public void register()Registers all defined values that extend aLoadedinterface for future loading.- Since:
- 1.0.0
-