public class Utils
extends java.lang.Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String[] |
classArray2StringArray(java.lang.Class<?>[] classes)
Convert an array of classes to an array of strings for invoking a
JMX operation.
|
static java.io.Serializable |
export(java.lang.Object object)
Convert an object into something that can be sent accross the wire.
|
static java.io.Serializable[] |
export(java.lang.Object[] objects)
Convert an array of objects to Objects that can
be sent accross the wire in a remote method call.
|
static java.lang.Object[] |
importResolve(java.lang.Object[] objects,
RemoteIdMappings names)
Import an array of objects that have come accross the wire.
|
static java.lang.Object |
importResolve(java.lang.Object object,
RemoteIdMappings names)
Import an object that has come across the wire.
|
public static java.lang.String[] classArray2StringArray(java.lang.Class<?>[] classes)
classes
- Array of classes.public static java.io.Serializable[] export(java.lang.Object[] objects) throws java.io.NotSerializableException
objects
- java.io.NotSerializableException
public static java.io.Serializable export(java.lang.Object object) throws java.io.NotSerializableException
object
- java.io.NotSerializableException
public static java.lang.Object[] importResolve(java.lang.Object[] objects, RemoteIdMappings names)
objects
- Objects to resolve.names
- The object to id mappingspublic static java.lang.Object importResolve(java.lang.Object object, RemoteIdMappings names)
object
- Object to resolve.names
- The object to id mappings.