Package de.geolykt.starloader.mod
Class Extension
java.lang.Object
de.geolykt.starloader.mod.Extension
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal @NotNull Extension.ExtensionDescriptionfinal @NotNull org.slf4j.LoggervoidvoidvoidDeprecated.This method is a boilerplate solution, for more info see below However, the method is not slated for removal.voidvoidDeprecated.This method is a boilerplate solution, for more info see below.voidDeprecated.This method is a boilerplate solution, for more info see below However, the method is not slated for removal.voidunload()Deprecated.This method is a boilerplate solution, for more info see below However, the method is not slated for removal.
-
Constructor Details
-
Extension
protected Extension()
-
-
Method Details
-
preInitialize
public void preInitialize() -
initialize
public void initialize() -
postInitialize
public void postInitialize() -
preTerminate
Deprecated.This method is a boilerplate solution, for more info see below. However, the method is not slated for removal. WARNING: The implementation of this method should be coded very carefully. The implementation should be thread-safe and avoid deadlocks and should not rely on the existence of other threads. For more info, seeRuntime.addShutdownHook(Thread). Additionally due to the nature of how extensions unload, it is recommended that are more recommendable method for unloading is used, for example SLAPI offers the ApplicationStopEvent and SignalExtensionTerminationExtension. Other extension libraries might offer similar alternatives that are a lot more safer to use. -
terminate
Deprecated.This method is a boilerplate solution, for more info see below However, the method is not slated for removal. WARNING: The implementation of this method should be coded very carefully. The implementation should be thread-safe and avoid deadlocks and should not rely on the existence of other threads. For more info, seeRuntime.addShutdownHook(Thread). Additionally due to the nature of how extensions unload, it is recommended that are more recommendable method for unloading is used, for example SLAPI offers the ApplicationStopEvent and SignalExtensionTerminationExtension. Other extension libraries might offer similar alternatives that are a lot more safer to use. -
postTerminate
Deprecated.This method is a boilerplate solution, for more info see below However, the method is not slated for removal. WARNING: The implementation of this method should be coded very carefully. The implementation should be thread-safe and avoid deadlocks and should not rely on the existence of other threads. For more info, seeRuntime.addShutdownHook(Thread). Additionally due to the nature of how extensions unload, it is recommended that are more recommendable method for unloading is used, for example SLAPI offers the ApplicationStopEvent and SignalExtensionTerminationExtension. Other extension libraries might offer similar alternatives that are a lot more safer to use. -
unload
Deprecated.This method is a boilerplate solution, for more info see below However, the method is not slated for removal. WARNING: The implementation of this method should be coded very carefully. The implementation should be thread-safe and avoid deadlocks and should not rely on the existence of other threads. For more info, seeRuntime.addShutdownHook(Thread). Additionally due to the nature of how extensions unload, it is recommended that are more recommendable method for unloading is used, for example SLAPI offers the ApplicationStopEvent and SignalExtensionTerminationExtension. Other extension libraries might offer similar alternatives that are a lot more safer to use. After calling this method, the entirety of the Extension is unloaded, which means classes provided by the extension become unusable. -
getDescription
-
getLogger
@NotNull public final @NotNull org.slf4j.Logger getLogger()
-