|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.cache.util.Util
public final class Util
General utility methods used throughout the JBC code base.
Nested Class Summary | |
---|---|
static class |
Util.MapModifications
Static inner class that holds 3 maps - for data added, removed and modified. |
Method Summary | ||
---|---|---|
static Util.MapModifications |
diffNodeData(java.util.Map<java.lang.Object,java.lang.Object> pre,
java.util.Map<java.lang.Object,java.lang.Object> post)
Calculates the diffs between data maps passed in to NodeModifiedEvent.getData()
before and after modification. |
|
static
|
getInstance(java.lang.Class<T> clazz)
|
|
static java.lang.Object |
getInstance(java.lang.String classname)
|
|
static java.lang.Class |
loadClass(java.lang.String classname)
Loads the specified class using this class's classloader, or, if it is null
(i.e. this class was loaded by the bootstrap classloader), the system classloader. |
|
static boolean |
safeEquals(java.lang.Object a,
java.lang.Object b)
Null-safe equality test. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.Class loadClass(java.lang.String classname) throws java.lang.ClassNotFoundException
null
(i.e. this class was loaded by the bootstrap classloader), the system classloader.
If loadtime instrumentation via GenerateInstrumentedClassLoader is used, this
class may be loaded by the bootstrap classloader.
classname
- name of the class to load
java.lang.ClassNotFoundException
public static <T> T getInstance(java.lang.Class<T> clazz) throws java.lang.Exception
java.lang.Exception
public static java.lang.Object getInstance(java.lang.String classname) throws java.lang.Exception
java.lang.Exception
public static Util.MapModifications diffNodeData(java.util.Map<java.lang.Object,java.lang.Object> pre, java.util.Map<java.lang.Object,java.lang.Object> post)
NodeModifiedEvent.getData()
before and after modification. This only makes sense if the modification type is NodeModifiedEvent.ModificationType.PUT_MAP
.
Refer to NodeModifiedEvent
and NodeModified
.
pre
- map of data before the node was modifiedpost
- Map of data after the node was modified
public static boolean safeEquals(java.lang.Object a, java.lang.Object b)
a
- first object to compareb
- second object to compare
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |