public static enum Application.OperationMode extends java.lang.Enum<Application.OperationMode>
Enum Constant and Description |
---|
JEE_COMPATIBILITY
In this mode, the request thread will be marked as UI thread in SWT.
|
SESSION_FAILOVER
This mode behaves just like
JEE_COMAPTIBILTIY but in
addition it registers the required servlet filter to support clustering. |
SWT_COMPATIBILITY
In this mode, a separate UI thread will be started for each user session.
|
Modifier and Type | Method and Description |
---|---|
static Application.OperationMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Application.OperationMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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.
Instead of blocking dialogs, the class DialogUtil
allows to
attach a callback to react on the closing of a dialog.
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
SWT_COMPATIBILITY
.
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
RWT.requestThreadExec(Runnable)
.
public static final Application.OperationMode SESSION_FAILOVER
JEE_COMAPTIBILTIY
but 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 namejava.lang.NullPointerException
- if the argument is null
Copyright (c) EclipseSource and others 2002, 2014.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0