public final class ApplicationScope
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ALL |
static int |
CLIENT |
static int |
DESIGNER |
static int |
GATEWAY |
static int |
NONE |
Modifier and Type | Method and Description |
---|---|
static int |
getGlobalScope()
Returns the scope of this jvm, wherever it may be.
|
static java.lang.String |
getScopePrefix()
Returns the current jvm's scope prefix, for use in thread names.
|
static void |
init(int globalScope) |
static boolean |
isClient(int scope) |
static boolean |
isDesigner(int scope) |
static boolean |
isGateway(int scope) |
static int |
parseScope(java.lang.String s)
Returns a bitmask representing application scope for strings like:
"C"= client, "DC"= designer or client, "G"= gateway, "N"=none, "A"=all
|
static java.lang.String |
toCode(int scope)
Turns a scope int into the various scope codes: "C"= client, "DC"= designer or client, "G"= gateway, "N"=none,
"A"=all.
|
static java.lang.String |
toString(int scope) |
static java.lang.String |
toString(java.lang.Integer scope,
java.util.Locale locale) |
public static final int NONE
public static final int GATEWAY
public static final int DESIGNER
public static final int CLIENT
public static final int ALL
public static int parseScope(java.lang.String s)
s
- public static void init(int globalScope)
public static int getGlobalScope()
public static java.lang.String getScopePrefix()
public static boolean isGateway(int scope)
public static boolean isClient(int scope)
public static boolean isDesigner(int scope)
public static java.lang.String toString(int scope)
public static java.lang.String toString(java.lang.Integer scope, java.util.Locale locale)
public static java.lang.String toCode(int scope)
scope
-