Class ExtensionWrapper
java.lang.Object
com.booksaw.betterTeams.extension.ExtensionWrapper
A wrapper class that holds a loaded
BetterTeamsExtension.-
Constructor Summary
ConstructorsConstructorDescriptionExtensionWrapper(ExtensionInfo info, BetterTeamsExtension instance, URLClassLoader classLoader) Creates a newExtensionWrapperinstance. -
Method Summary
Modifier and TypeMethodDescriptionThe classloader used to load this extension, isolating its dependencies.getInfo()Holds metadata about the extension.The actual instance of the extension's main class.booleanThe current lifecycle state of the extension.voidsetEnabled(boolean enabled) The current lifecycle state of the extension.
-
Constructor Details
-
ExtensionWrapper
public ExtensionWrapper(ExtensionInfo info, BetterTeamsExtension instance, URLClassLoader classLoader) Creates a newExtensionWrapperinstance.- Parameters:
info- Holds metadata about the extension.instance- The actual instance of the extension's main class.classLoader- The classloader used to load this extension, isolating its dependencies.
-
-
Method Details
-
getInfo
Holds metadata about the extension. -
getInstance
The actual instance of the extension's main class. -
getClassLoader
The classloader used to load this extension, isolating its dependencies. -
isEnabled
public boolean isEnabled()The current lifecycle state of the extension. -
setEnabled
public void setEnabled(boolean enabled) The current lifecycle state of the extension.
-