|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.farrago.jdbc.FarragoJdbcUtil.SerializationChecker
private static class FarragoJdbcUtil.SerializationChecker
Tests whether an object (in particular an exception) is serializable. Maintains a list of objects actively being tested so that we do not recursively test the same object.
Field Summary | |
---|---|
private Set |
active
|
private static Pattern |
NON_SERIALIAZABLE_CLASSES
What classes should not be serialized. |
private boolean |
rmiClassLoader
Whether the client has the RMI class loader enabled. |
Constructor Summary | |
---|---|
private |
FarragoJdbcUtil.SerializationChecker()
|
Method Summary | |
---|---|
(package private) boolean |
isSerializable(Object o)
Returns whether an object is serializable. |
(package private) Throwable |
makeSerializable(Throwable throwable)
Converts a Throwable into a similar exception that is
serializable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final Pattern NON_SERIALIAZABLE_CLASSES
private final Set active
private final boolean rmiClassLoader
Constructor Detail |
---|
private FarragoJdbcUtil.SerializationChecker()
Method Detail |
---|
Throwable makeSerializable(Throwable throwable)
Throwable
into a similar exception that is
serializable. The original object, or at least its cause, is used if
possible; and the new throwable has the same stack trace.
throwable
- Exception
boolean isSerializable(Object o)
o
- Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |