|
Eclipse Rich Ajax Platform | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Application.OperationMode> org.eclipse.rwt.application.Application.OperationMode
public static enum Application.OperationMode
Instances of this class represent a mode of operation for an RWT application. The major difference between the operation modes is whether a separate UI thread is started for every session (SWT_COMPATIBILITY) or not (JEE_COMPATIBILITY).
Enum Constant Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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.
Method Detail |
---|
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
|
Eclipse Rich Ajax Platform | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
Copyright (c) EclipseSource and others 2002, 2012. All rights reserved.