Class ObjectInspector
- java.lang.Object
-
- de.uplanet.lucy.server.auxiliaries.ObjectInspector
-
@VelocityVariable("DEBUG") @VelocityCallable("singleton") public final class ObjectInspector extends Object
Used to inspect an object.
-
-
Constructor Summary
Constructors Constructor Description ObjectInspector()
Construct a newObjectInspector
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
debugger()
This method does nothing.void
error(Object p_obj)
Write an error entry to the log file.void
gc()
Run finalization and trigger garbage collection.Stopwatch
getBuiltinStopwatch()
Get the built-in stopwatch.void
info(Object p_obj)
Write an info entry to the log file.String
inspect(Object p_obj)
Inspect the given object.String
inspectClass(String p_strClass)
Inspect the given class, i.e.boolean
isJavaScriptDebugEnabled()
Test if JavaScript debugging is enabled.boolean
isJQueryMigrationPluginEnabled()
Test if jQuery migration plugin is enabled.boolean
isLocalStorageCachingEnabled()
Test if local storage caching is enabled.boolean
isVelocityDebugEnabled()
Test if Velocity debugging is enabled.Stopwatch
stopwatch()
Get the built-in stopwatch.void
warn(Object p_obj)
Write a warning entry to the log file.
-
-
-
Method Detail
-
debugger
public void debugger()
This method does nothing. It may be used to set breakpoints in a JVM debugger.
-
isVelocityDebugEnabled
public boolean isVelocityDebugEnabled()
Test if Velocity debugging is enabled.- Returns:
-
isJavaScriptDebugEnabled
public boolean isJavaScriptDebugEnabled()
Test if JavaScript debugging is enabled.- Returns:
-
isJQueryMigrationPluginEnabled
public boolean isJQueryMigrationPluginEnabled()
Test if jQuery migration plugin is enabled.- Returns:
-
isLocalStorageCachingEnabled
public boolean isLocalStorageCachingEnabled()
Test if local storage caching is enabled.- Returns:
-
inspect
public String inspect(Object p_obj)
Inspect the given object.- Parameters:
p_obj
- The object to be inspected.
-
inspectClass
public String inspectClass(String p_strClass)
Inspect the given class, i.e. check if it exists, and if so, determine its location if possible.- Parameters:
p_strClass
- The class to be inspected.
-
info
public void info(Object p_obj)
Write an info entry to the log file.- Parameters:
p_obj
- The object to be written to the log (may benull
).
-
warn
public void warn(Object p_obj)
Write a warning entry to the log file.- Parameters:
p_obj
- The object to be written to the log (may benull
).
-
error
public void error(Object p_obj)
Write an error entry to the log file.- Parameters:
p_obj
- The object to be written to the log (may benull
).
-
getBuiltinStopwatch
public Stopwatch getBuiltinStopwatch()
Get the built-in stopwatch.- Returns:
- A reference to the built-in stopwatch.
-
stopwatch
public Stopwatch stopwatch()
Get the built-in stopwatch.- Returns:
- A new stopwatch instance.
-
gc
public void gc()
Run finalization and trigger garbage collection.
-
-