Class AbstractMarshaller

  • All Implemented Interfaces:
    Marshaller
    Direct Known Subclasses:
    AbstractNodeNameAwareMarshaller

    public abstract class AbstractMarshaller
    extends Object
    implements Marshaller
    Base class for marshallers. Provides default implementations of methods that work with byte array or GridByteArrayList. These implementations use GridByteArrayInputStream or GridByteArrayOutputStream to marshal and unmarshal objects.
    • Field Detail

      • DFLT_BUFFER_SIZE

        public static final int DFLT_BUFFER_SIZE
        Default initial buffer size for the GridByteArrayOutputStream.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractMarshaller

        public AbstractMarshaller()
    • Method Detail

      • onUndeploy

        public abstract void onUndeploy​(ClassLoader ldr)
        Undeployment callback invoked when class loader is being undeployed. Some marshallers may want to clean their internal state that uses the undeployed class loader somehow.
        Parameters:
        ldr - Class loader being undeployed.