Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

For Ignite marshaling to support OSGI containers, we need to make sure that on the deserializing side we use proper bundle-aware class loaders. 

ClassLoaderResolver

 

The ClassLoaderResolver should be called for every Object during serialization and deserialization and should be part of the IgniteConfiguraiton:

Code Block
public interface ClassLoaderResolver {
    public Object encodeClassLoader(ClassLoader clsLdr) throws IgniteException;
    public ClassLoader decodeClassLoader(Object obj) throws IgniteException;
}

...