Uploaded image for project: 'Talend Component Kit'
  1. Talend Component Kit
  2. TCOMP-1885

Service Serializable

Apply templateInsert Lucidchart Diagram
    XMLWordPrintable

Details

    • All
    • GreenHopper Ranking:
      0|i20jaz:
    • 9223372036854775807
    • Small

    Description

      When a service is de-serialize, instance has to be finded on Container. This is done by SerializableService class.

      It's the role of ProxyGenerator to introduce the writeReplace method that build SerializableService instance.
      But this is done only if class does not implement Serializable.

      As a consequence, services instances are serializable field on serializable class but are declared not serializable.

      (second, it use ASM to generate bytecode, which is quite error prone and not reliable on different java version)

      So, another way would to add a parent class on Services that define method writeReplace :

      protected final Object writeReplace() throws ObjectStreamException { ... }
      

      Attachments

        Activity

          People

            emmanuel_g emmanuel gallois
            clesaec Christophe LeSaec
            Christophe LeSaec, emmanuel gallois, Fabien Desiles
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: