Verified Owner
Top Description Inners Fields Constructors Methods
org.jabref

public Class Launcher

extends Object
Class Inheritance
Imports
java.io.File, .IOException, java.net.Authenticator, java.nio.file.Files, .Path, java.util.Arrays, .List, org.jabref.cli.ArgumentProcessor, org.jabref.gui.JabRefGUI, org.jabref.gui.logging.JavaFxCssLogFilter, org.jabref.gui.preferences.GuiPreferences, .JabRefGuiPreferences, org.jabref.logic.UiCommand, org.jabref.logic.citationstyle.CSLStyleLoader, org.jabref.logic.net.ProxyAuthenticator, .ProxyPreferences, .ProxyRegisterer, org.jabref.logic.net.ssl.SSLPreferences, .TrustStoreManager, org.jabref.logic.preferences.CliPreferences, org.jabref.logic.remote.RemotePreferences, org.jabref.logic.remote.client.RemoteClient, org.jabref.logic.search.sqlbased.PostgresServer, org.jabref.logic.util.BuildInfo, .Directories, org.jabref.migrations.PreferencesMigrations, com.airhacks.afterburner.injection.Injector, org.slf4j.Logger, .LoggerFactory, org.slf4j.bridge.SLF4JBridgeHandler, org.tinylog.Level, org.tinylog.configuration.Configuration

The main entry point for the JabRef application.

It has two main functions:

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Field Summary

Modifier and TypeField and Description
private static final BuildInfo
private static Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static void
configureProxy(ProxyPreferences proxyPreferences)

private static void
configureSSL(SSLPreferences sslPreferences)

private static Launcher.MultipleInstanceAction
handleMultipleAppInstances(String[] args, RemotePreferences remotePreferences)

Returns: MultipleInstanceAction: CONTINUE if JabRef should continue starting up, SHUTDOWN if it should quit, FOCUS if it should focus the existing instance.

public static void
initLogging(String[] args)

This needs to be called as early as possible.

pack-priv static void
main(String[] args)

private static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

BUILD_INFOback to summary
private static final BuildInfo BUILD_INFO
LOGGERback to summary
private static Logger LOGGER

Constructor Detail

Launcherback to summary
public Launcher()

Method Detail

configureProxyback to summary
private static void configureProxy(ProxyPreferences proxyPreferences)
configureSSLback to summary
private static void configureSSL(SSLPreferences sslPreferences)
handleMultipleAppInstancesback to summary
private static Launcher.MultipleInstanceAction handleMultipleAppInstances(String[] args, RemotePreferences remotePreferences)
Returns:Launcher.MultipleInstanceAction

MultipleInstanceAction: CONTINUE if JabRef should continue starting up, SHUTDOWN if it should quit, FOCUS if it should focus the existing instance.

initLoggingback to summary
public static void initLogging(String[] args)

This needs to be called as early as possible. After the first log write, it is not possible to alter the log configuration programmatically anymore.

mainback to summary
pack-priv static void main(String[] args)
systemExitback to summary
private static void systemExit()
org.jabref back to summary

public final Enum Launcher.MultipleInstanceAction

extends Enum<Launcher.MultipleInstanceAction>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final Launcher.MultipleInstanceAction
public static final Launcher.MultipleInstanceAction
public static final Launcher.MultipleInstanceAction

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static Launcher.MultipleInstanceAction
public static Launcher.MultipleInstanceAction[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

CONTINUEback to summary
public static final Launcher.MultipleInstanceAction CONTINUE
FOCUSback to summary
public static final Launcher.MultipleInstanceAction FOCUS
SHUTDOWNback to summary
public static final Launcher.MultipleInstanceAction SHUTDOWN

Constructor Detail

MultipleInstanceActionback to summary
private MultipleInstanceAction()

Method Detail

valueOfback to summary
public static Launcher.MultipleInstanceAction valueOf(String name)
valuesback to summary
public static Launcher.MultipleInstanceAction[] values()