Class JarLibrary
java.lang.Object
io.papermc.paper.plugin.loader.library.impl.JarLibrary
- All Implemented Interfaces:
- ClassPathLibrary
A simple jar library implementation of the 
ClassPathLibrary that allows PluginLoaders to
 append a jar stored on the local file system into their runtime classloader.
 An example creation of the jar library type may look like this:
   final JarLibrary customLibrary = new JarLibrary(Path.of("libs/custom-library-1.24.jar"));
 libs/custom-library-1.24.jar to the plugins classloader
 at runtime.
 The jar library implementation will error if file exists at the specified path.
- 
Constructor SummaryConstructorsConstructorDescriptionJarLibrary(@NotNull Path path) Creates a new jar library that references the jar file found at the provided path.
- 
Method SummaryModifier and TypeMethodDescriptionvoidregister(@NotNull LibraryStore store) Called to register the library this class path library represents into the passed library store.
- 
Constructor Details- 
JarLibraryCreates a new jar library that references the jar file found at the provided path.- Parameters:
- path- the path, relative to the JVMs start directory.
 
 
- 
- 
Method Details- 
registerDescription copied from interface:ClassPathLibraryCalled to register the library this class path library represents into the passed library store. This method may either be implemented by the plugins themselves if they need complex logic, or existing API exposed implementations of this interface may be used.- Specified by:
- registerin interface- ClassPathLibrary
- Parameters:
- store- the library store instance to register this library into
- Throws:
- LibraryLoadingException- if library loading failed for this classpath library
 
 
-