public final class Util extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Util.MapModifications
Static inner class that holds 3 maps - for data added, removed and modified.
|
Modifier and Type | Method and Description |
---|---|
static Util.MapModifications |
diffNodeData(Map<Object,Object> pre,
Map<Object,Object> post)
Calculates the diffs between data maps passed in to
NodeModifiedEvent.getData()
before and after modification. |
static <T> T |
getInstance(Class<T> clazz) |
static Object |
getInstance(String classname) |
static Class |
loadClass(String classname)
Loads the specified class using this class's classloader, or, if it is
null
(i.e. |
static boolean |
safeEquals(Object a,
Object b)
Null-safe equality test.
|
public static Class loadClass(String classname) throws 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 loadClassNotFoundException
public static Util.MapModifications diffNodeData(Map<Object,Object> pre, Map<Object,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 modifiedCopyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.