Class ClassesSerializableTest

    • Constructor Detail

      • ClassesSerializableTest

        public ClassesSerializableTest()
    • Method Detail

      • getExcludedPatterns

        protected Stream<String> getExcludedPatterns()
      • serializeAndDeserialize

        public <T> T serializeAndDeserialize​(T instance)
                                      throws Throwable
        Performs actual serialization/deserialization
        Type Parameters:
        T - the type of the instance
        Parameters:
        instance - the instance
        Returns:
        the copy of the source object
        Throws:
        Throwable - if something goes wrong.
      • resetThreadLocals

        protected void resetThreadLocals()
        The method is called right after a class instantiation and might be overriden by subclasses to reset thread local values (ex. current UI).
        See Also:
        setupThreadLocals()
      • setupThreadLocals

        protected void setupThreadLocals()
        The method is called right a class instantiation and might be overriden by subclasses to install some necessary thread local values (ex. current UI).
        See Also:
        resetThreadLocals()