Guice : RuneliteProperties inj (#212)
This commit is contained in:
@@ -88,10 +88,12 @@ public class RuneLite
|
|||||||
private static RuneLite runelite;
|
private static RuneLite runelite;
|
||||||
private static TrayIcon trayIcon;
|
private static TrayIcon trayIcon;
|
||||||
|
|
||||||
private final RuneliteProperties properties = new RuneliteProperties();
|
|
||||||
private Client client;
|
private Client client;
|
||||||
private ClientUI gui;
|
private ClientUI gui;
|
||||||
|
|
||||||
|
@Inject
|
||||||
|
private RuneliteProperties properties;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
private PluginManager pluginManager;
|
private PluginManager pluginManager;
|
||||||
|
|
||||||
|
|||||||
@@ -29,6 +29,10 @@ import java.io.InputStream;
|
|||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
|
||||||
|
import javax.inject.Inject;
|
||||||
|
import javax.inject.Singleton;
|
||||||
|
|
||||||
|
@Singleton
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class RuneliteProperties
|
public class RuneliteProperties
|
||||||
{
|
{
|
||||||
@@ -36,6 +40,7 @@ public class RuneliteProperties
|
|||||||
|
|
||||||
private final Properties properties = new Properties();
|
private final Properties properties = new Properties();
|
||||||
|
|
||||||
|
@Inject
|
||||||
public RuneliteProperties()
|
public RuneliteProperties()
|
||||||
{
|
{
|
||||||
InputStream in = getClass().getResourceAsStream("runelite.properties");
|
InputStream in = getClass().getResourceAsStream("runelite.properties");
|
||||||
|
|||||||
Reference in New Issue
Block a user