public static enum Application.OperationMode extends java.lang.Enum<Application.OperationMode>
|Enum Constant and Description|
In this mode, the request thread will be marked as UI thread in SWT.
This mode behaves just like
In this mode, a separate UI thread will be started for each user session.
|Modifier and Type||Method and Description|
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in the order they are declared.
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
public static final Application.OperationMode JEE_COMPATIBILITY
As its only limitation, it does not support the SWT main loop (more
specifically, the method
Display.sleep() is not implemented). As
a consequence, blocking dialogs aren't possible with this operation mode.
As an alternative to blocking dialogs, the class
open method that accepts a callback to react
on the closing of a dialog.
Moreover, the blocking
evaluate are not supported in this mode. A non-blocking
evaluate method exists that also accepts a callback.
Unless there is a need for blocking dialogs (e.g. when using the Eclipse
workbench), this mode is recommended as it is more lightweight than
public static final Application.OperationMode SWT_COMPATIBILITY
Display.sleep()lets the request thread continue and puts the UI thread to sleep. This approach fully supports the SWT main loop and thus also allows for blocking dialogs.
Information that is attached to the request thread, such as security or
transaction contexts, can only be accessed using the method
public static final Application.OperationMode SESSION_FAILOVER
JEE_COMAPTIBILTIYbut in addition it registers the required servlet filter to support clustering. This mode requires the servlet API 3.0.
public static Application.OperationMode values()
for (Application.OperationMode c : Application.OperationMode.values()) System.out.println(c);
public static Application.OperationMode valueOf(java.lang.String name)
name- the name of the enum constant to be returned.
java.lang.IllegalArgumentException- if this enum type has no constant with the specified name
java.lang.NullPointerException- if the argument is null
Copyright (c) EclipseSource and others 2002, 2019.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0
Copyright (c) EclipseSource and others 2002, 2019. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0