Uploaded image for project: 'JBoss Marshalling'
  1. JBoss Marshalling
  2. JBMAR-149

Support for hook into the serialization process with ObjectResolver before the user replacement is called

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 2.0.0.Beta1
    • 2.0.0.Beta1
    • Marshalling API
    • None

      When serializing a hibernate object it's converted to a SerializableProxy object because of the object writeReplace, this result in SerializableProxy object instead.

      This happen before you can intercept it with a ObjectResolver and you are not able to get the original hibernate object. If it was possible to hook into the process before the user replacement, you will be able to detach the object from the hibernate session and get the real implementation of the object

      Suggest we add new method to the ObjectResolver interface called something like preWriteReplace. Call the hook before an ObjectTable lookup

              dlloyd@redhat.com David Lloyd
              fharms_jira Flemming Harms (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: