Interface IJCPersister.FinishableBean

  • Enclosing interface:
    IJCPersister

    @Deprecated
    public static interface IJCPersister.FinishableBean
    Deprecated.
    Don't implement this interface. Correct way is to implement persister. Allows the bean to fix up itself after the whole bean is deserialized. The bean may optimize its setters so they do not fire (during deserialization) property change events or update its siblings.
    • Method Detail

      • readResolve

        java.lang.Object readResolve​(org.openide.util.Lookup context)
                              throws java.io.IOException
        Deprecated.
        Informs the bean that the reading of properties has been finished. The bean may return itself (this), or replace the instance with another bean. The function is similar to readResolve method in Java Serialization API.
        Parameters:
        context - The Lookup context used during reading
        Returns:
        The deserialized and fixed-up object, either the bean itself, or its replacement object.
        Throws:
        java.io.IOException