Package com.github.mafelp.accounts
Class AccountLoader
java.lang.Object
java.lang.Thread
com.github.mafelp.accounts.AccountLoader
- All Implemented Interfaces:
java.lang.Runnable
public class AccountLoader
extends java.lang.Thread
The thread, which loads the accounts into AccountManager.linkedAccounts.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
-
Field Summary
Fields Modifier and Type Field Description private static java.io.File
accountFile
The file in which all the accounts are stored.private static com.google.gson.JsonParser
jsonParser
The Json Parser used to parse Json from the Accounts File.Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
Constructors Constructor Description AccountLoader()
-
Method Summary
Modifier and Type Method Description void
run()
The method that runs the loading in another thread.Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
jsonParser
private static final com.google.gson.JsonParser jsonParserThe Json Parser used to parse Json from the Accounts File. -
accountFile
private static final java.io.File accountFileThe file in which all the accounts are stored.
-
-
Constructor Details
-
AccountLoader
public AccountLoader()
-
-
Method Details
-
run
public void run()The method that runs the loading in another thread.- Specified by:
run
in interfacejava.lang.Runnable
- Overrides:
run
in classjava.lang.Thread
-