Module org.tentackle.fx.rdc.update
Package org.tentackle.fx.rdc.update
Class UpdatableDesktopApplication<C extends org.tentackle.fx.FxController>
java.lang.Object
org.tentackle.app.AbstractApplication
org.tentackle.app.AbstractClientApplication
org.tentackle.fx.rdc.app.DesktopApplication<C>
org.tentackle.fx.rdc.update.UpdatableDesktopApplication<C>
- Type Parameters:
C- the main controller type
- All Implemented Interfaces:
org.tentackle.app.Application,org.tentackle.pdo.DomainContextProvider,org.tentackle.reflect.ClassMappedListener,org.tentackle.session.SessionProvider
public abstract class UpdatableDesktopApplication<C extends org.tentackle.fx.FxController>
extends DesktopApplication<C>
Desktop application with auto update facility.
-
Field Summary
Fields inherited from class org.tentackle.app.AbstractApplication
DISABLE_MODIFICATION_TRACKER, DISABLE_SECURITY_MANAGER, ENABLE_STATISTICS, LOCALE, SCRIPTING -
Constructor Summary
ConstructorsConstructorDescriptionUpdatableDesktopApplication(String name, String version) Creates an FX desktop application. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidChecks whether another updatable application is already running in the current working directory.
ThrowsTentackleRuntimeExceptionif so.createLoginFailedHandler(javafx.scene.Parent view, org.tentackle.session.SessionInfo sessionInfo) protected StringGets the name of the lockfile.protected voidMethods inherited from class org.tentackle.fx.rdc.app.DesktopApplication
classMapped, configureMainStage, configureModificationTracker, configurePreferences, configureSecurityManager, createDomainContext, createSessionInfo, finishStartup, getApplicationClass, getFxApplication, getMainController, getMainControllerClass, getMainStage, getUncaughtExceptionHandler, initializeScripting, isAutoLogin, isInteractive, login, registerUncaughtExceptionHandler, setFxApplication, setMainController, showApplicationStatus, showApplicationStatus, startupMethods inherited from class org.tentackle.app.AbstractClientApplication
updateSessionInfoAfterLoginMethods inherited from class org.tentackle.app.AbstractApplication
activateStatistics, applyProperties, cleanup, configure, createSession, filterName, filterVersion, getCommandLine, getCreationTime, getDomainContext, getName, getProperties, getProperty, getPropertyAsChars, getSession, getSessionInfo, getVersion, isServer, isSystemExitNecessaryToStop, logStackdump, setDomainContext, setProperties, setSessionInfo, start, stop, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.tentackle.app.Application
getUser, register, start, stop, unregisterMethods inherited from interface org.tentackle.pdo.DomainContextProvider
on, on, op, op
-
Constructor Details
-
UpdatableDesktopApplication
Creates an FX desktop application.- Parameters:
name- the application name, null for default nameversion- the application version, null for default version
-
-
Method Details
-
createLoginFailedHandler
public LoginFailedHandler createLoginFailedHandler(javafx.scene.Parent view, org.tentackle.session.SessionInfo sessionInfo) - Overrides:
createLoginFailedHandlerin classDesktopApplication<C extends org.tentackle.fx.FxController>
-
initialize
protected void initialize()- Overrides:
initializein classorg.tentackle.app.AbstractApplication
-
assertNotAlreadyRunning
protected void assertNotAlreadyRunning()Checks whether another updatable application is already running in the current working directory.
ThrowsTentackleRuntimeExceptionif so. -
getLockFileName
Gets the name of the lockfile.- Returns:
- the lockfile name
-