@ThreadSafe public final class ScopeHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_DEBUG_APPLICATION_SCOPE |
static boolean |
DEFAULT_DEBUG_GLOBAL_SCOPE |
static boolean |
DEFAULT_DEBUG_LIFE_CYCLE |
static boolean |
DEFAULT_DEBUG_REQUEST_SCOPE |
static boolean |
DEFAULT_DEBUG_SESSION_APPLICATION_SCOPE |
static boolean |
DEFAULT_DEBUG_SESSION_SCOPE |
static boolean |
DEFAULT_DEBUG_WITH_STACK_TRACE |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
debugApplicationScopeLifeCycle(org.slf4j.Logger aLogger)
This is a just a helper method to determine whether application scope
creation/deletion issues should be logged or not.
|
static boolean |
debugGlobalScopeLifeCycle(org.slf4j.Logger aLogger)
This is a just a helper method to determine whether global scope
creation/deletion issues should be logged or not.
|
static boolean |
debugRequestScopeLifeCycle(org.slf4j.Logger aLogger)
This is a just a helper method to determine whether request scope
creation/deletion issues should be logged or not.
|
static boolean |
debugSessionApplicationScopeLifeCycle(org.slf4j.Logger aLogger)
This is a just a helper method to determine whether global session
application creation/deletion issues should be logged or not.
|
static boolean |
debugSessionScopeLifeCycle(org.slf4j.Logger aLogger)
This is a just a helper method to determine whether session scope
creation/deletion issues should be logged or not.
|
static Throwable |
getDebugStackTrace() |
static boolean |
isDebugApplicationScopeEnabled() |
static boolean |
isDebugGlobalScopeEnabled() |
static boolean |
isDebugRequestScopeEnabled() |
static boolean |
isDebugSessionApplicationScopeEnabled() |
static boolean |
isDebugSessionScopeEnabled() |
static boolean |
isDebugWithStackTrace() |
static boolean |
isLifeCycleDebuggingEnabled() |
static void |
setDebugApplicationScopeEnabled(boolean bDebugScope)
Enable or disable application scope life cycle debugging.
|
static void |
setDebugGlobalScopeEnabled(boolean bDebugScope)
Enable or disable global scope life cycle debugging.
|
static void |
setDebugRequestScopeEnabled(boolean bDebugScope)
Enable or disable request scope life cycle debugging.
|
static void |
setDebugSessionApplicationScopeEnabled(boolean bDebugScope)
Enable or disable session application scope life cycle debugging.
|
static void |
setDebugSessionScopeEnabled(boolean bDebugScope)
Enable or disable session scope life cycle debugging.
|
static void |
setDebugWithStackTrace(boolean bDebugWithStackTrace)
Enable or disable stack traces when debugging scopes.
|
static void |
setLifeCycleDebuggingEnabled(boolean bDebugLifeCycle)
Enable or disable scope life cycle debugging for all scopes.
|
public static final boolean DEFAULT_DEBUG_LIFE_CYCLE
public static final boolean DEFAULT_DEBUG_GLOBAL_SCOPE
public static final boolean DEFAULT_DEBUG_APPLICATION_SCOPE
public static final boolean DEFAULT_DEBUG_SESSION_SCOPE
public static final boolean DEFAULT_DEBUG_SESSION_APPLICATION_SCOPE
public static final boolean DEFAULT_DEBUG_REQUEST_SCOPE
public static final boolean DEFAULT_DEBUG_WITH_STACK_TRACE
public static void setLifeCycleDebuggingEnabled(boolean bDebugLifeCycle)
bDebugLifeCycle - true if the scope life cycle should be debugged,
false to disable it. By default is is disabled.public static boolean isLifeCycleDebuggingEnabled()
true if life cycle debugging for all scopes is
enabled, false if it is disabled. The default value is
disabled.public static void setDebugGlobalScopeEnabled(boolean bDebugScope)
bDebugScope - true if the global scope life cycle should be debugged,
false to disable it. By default is is disabled.public static boolean isDebugGlobalScopeEnabled()
true if global scope life cycle debugging is enabled,
false if it is disabled. The default value is
disabled.public static void setDebugApplicationScopeEnabled(boolean bDebugScope)
bDebugScope - true if the application scope life cycle should be
debugged, false to disable it. By default is is
disabled.public static boolean isDebugApplicationScopeEnabled()
true if application scope life cycle debugging is
enabled, false if it is disabled. The default value is
disabled.public static void setDebugSessionScopeEnabled(boolean bDebugScope)
bDebugScope - true if the session scope life cycle should be
debugged, false to disable it. By default is is
disabled.public static boolean isDebugSessionScopeEnabled()
true if session scope life cycle debugging is enabled,
false if it is disabled. The default value is
disabled.public static void setDebugSessionApplicationScopeEnabled(boolean bDebugScope)
bDebugScope - true if the session application scope life cycle should
be debugged, false to disable it. By default is is
disabled.public static boolean isDebugSessionApplicationScopeEnabled()
true if session application scope life cycle debugging
is enabled, false if it is disabled. The default value
is disabled.public static void setDebugRequestScopeEnabled(boolean bDebugScope)
bDebugScope - true if the request scope life cycle should be
debugged, false to disable it. By default is is
disabled.public static boolean isDebugRequestScopeEnabled()
true if request scope life cycle debugging is enabled,
false if it is disabled. The default value is
disabled.public static void setDebugWithStackTrace(boolean bDebugWithStackTrace)
bDebugWithStackTrace - true to enable stack traces, false to
disable them. By default is is disabled.public static boolean isDebugWithStackTrace()
true if stack traces should be logged,
false if not. The default value is disabled.public static boolean debugGlobalScopeLifeCycle(@Nonnull org.slf4j.Logger aLogger)
aLogger - The logger to check.true if global scope creation/deletion should be
logged, false otherwise.public static boolean debugApplicationScopeLifeCycle(@Nonnull org.slf4j.Logger aLogger)
aLogger - The logger to check.true if application scope creation/deletion should be
logged, false otherwise.public static boolean debugSessionScopeLifeCycle(@Nonnull org.slf4j.Logger aLogger)
aLogger - The logger to check.true if session scope creation/deletion should be
logged, false otherwise.public static boolean debugSessionApplicationScopeLifeCycle(@Nonnull org.slf4j.Logger aLogger)
aLogger - The logger to check.true if session application scope creation/deletion
should be logged, false otherwise.public static boolean debugRequestScopeLifeCycle(@Nonnull org.slf4j.Logger aLogger)
aLogger - The logger to check.true if request scope creation/deletion should be
logged, false otherwise.@Nullable public static Throwable getDebugStackTrace()
null if
isDebugWithStackTrace() is falseisDebugWithStackTrace()Copyright © 2014–2016 Philip Helger. All rights reserved.