Skip to content

Commit ae4c896

Browse files
committed
[+] Interface LoadBoundary
1 parent ea0e48b commit ae4c896

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
package org.hydev.mcpm.client.injector;
2+
3+
import java.io.File;
4+
5+
/**
6+
* Interface for loading a locally installed plugin.
7+
*
8+
* @author Azalea (https://github.com/hykilpikonna)
9+
* @since 2022-10-29
10+
*/
11+
public interface LoadBoundary
12+
{
13+
/**
14+
* Dynamically load a local plugin through JVM reflections and classloader hacks
15+
*
16+
* @param name Loaded plugin name
17+
*/
18+
public void loadPlugin(String name) throws PluginNotFoundException;
19+
20+
/**
21+
* Dynamically load a local plugin through JVM reflections and classloader hacks
22+
*
23+
* @param jar Local jar file path
24+
*/
25+
public void loadPlugin(File jar);
26+
}

0 commit comments

Comments
 (0)