Class ApplicationPostStartEvent
java.lang.Object
eu.cloudnetservice.driver.event.Event
eu.cloudnetservice.wrapper.event.ApplicationPostStartEvent
public final class ApplicationPostStartEvent
extends eu.cloudnetservice.driver.event.Event
An event called when the underlying application of the wrapper was started. This event cannot be used by platform
plugins or extensions, as this event is fired before they get enabled.
- Since:
- 4.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Class<?> private final Threadprivate final ClassLoader -
Constructor Summary
ConstructorsConstructorDescriptionApplicationPostStartEvent(@NonNull Class<?> applicationMainClass, @NonNull Thread applicationThread, @NonNull ClassLoader classLoader) Constructs a new ApplicationPostStartEvent instance. -
Method Summary
Modifier and TypeMethodDescriptionGet the main class which was invoked when starting the application.Get the thread in which the application is running.Get the class loader which was used to load the main class of the application (and all other classes of the application in the runtime unless the application decides to switch to another loader).
-
Field Details
-
applicationMainClass
-
applicationThread
-
classLoader
-
-
Constructor Details
-
ApplicationPostStartEvent
public ApplicationPostStartEvent(@NonNull @NonNull Class<?> applicationMainClass, @NonNull @NonNull Thread applicationThread, @NonNull @NonNull ClassLoader classLoader) Constructs a new ApplicationPostStartEvent instance.- Parameters:
applicationMainClass- the main class instance which will be invoked to start the application.applicationThread- the thread in which the application was started.classLoader- the class loader which loaded the application main class.- Throws:
NullPointerException- if the given app main, app thread or class loader is null.
-
-
Method Details
-
applicationMainClass
-
applicationThread
-
classLoader
Get the class loader which was used to load the main class of the application (and all other classes of the application in the runtime unless the application decides to switch to another loader).- Returns:
- the class loader of the application main class.
-