Package org.opendaylight.raft.spi
Class RestrictedObjectStreams
java.lang.Object
org.opendaylight.raft.spi.RestrictedObjectStreams
Support for
ObjectInputStreams backed by an explicit ordered set of ClassLoaders plus the
ClassLoader.getPlatformClassLoader().-
Method Summary
Modifier and TypeMethodDescriptionReturn a newObjectInputStreambacked by specifiedInputStream.static RestrictedObjectStreamsof(ClassLoader... classLoaders) Return an instance backed by specifiedClassLoaders.static RestrictedObjectStreamsof(List<? extends ClassLoader> classLoaders) Return an instance backed by specifiedClassLoaders.static RestrictedObjectStreamsofClassLoaders(Class<?>... classes) Return an instance backed byClassLoaders of specified classes, as returned byClass.getClassLoader().static RestrictedObjectStreamsofClassLoaders(List<? extends Class<?>> classes) Return an instance backed byClassLoaders of specified classes, as returned byClass.getClassLoader().toString()
-
Method Details
-
of
Return an instance backed by specifiedClassLoaders.- Parameters:
classLoaders- theClassLoaders- Returns:
- a shared
RestrictedObjectStreamsinstance
-
of
Return an instance backed by specifiedClassLoaders.- Parameters:
classLoaders- theClassLoaders- Returns:
- a shared
RestrictedObjectStreamsinstance
-
ofClassLoaders
Return an instance backed byClassLoaders of specified classes, as returned byClass.getClassLoader().- Parameters:
classes- theClasses- Returns:
- a shared
RestrictedObjectStreamsinstance
-
ofClassLoaders
Return an instance backed byClassLoaders of specified classes, as returned byClass.getClassLoader().- Parameters:
classes- theClasses- Returns:
- a shared
RestrictedObjectStreamsinstance
-
newObjectInputStream
Return a newObjectInputStreambacked by specifiedInputStream.- Parameters:
in- theInputStream- Returns:
- a new
ObjectInputStream - Throws:
IOException- if an I/O error occurs
-
toString
-