Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #28537

store / load a non-serializable interface

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!ecngs!feeder2.ecngs.de!217.188.199.168.MISMATCH!takemy.news.telefonica.de!telefonica.de!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail
From Philipp Kraus <philipp.kraus@flashpixx.de>
Newsgroups comp.lang.java.programmer
Subject store / load a non-serializable interface
Date Mon, 19 May 2014 22:01:52 +0200
Organization 1&1 Internet AG
Lines 31
Message-ID <lldnvh$e29$1@online.de> (permalink)
NNTP-Posting-Host pd952cf5b.dip0.t-ipconnect.de
Mime-Version 1.0
Content-Type text/plain; charset=iso-8859-1; format=flowed
Content-Transfer-Encoding 8bit
X-Trace online.de 1400529713 14409 217.82.207.91 (19 May 2014 20:01:53 GMT)
X-Complaints-To abuse@einsundeins.com
NNTP-Posting-Date Mon, 19 May 2014 20:01:53 +0000 (UTC)
User-Agent Unison/2.1.10
Xref csiph.com comp.lang.java.programmer:28537

Show key headers only | View raw


Hello,

I have got a non-serializable class and I would like to store / load 
these objects. So my idea
is creating a encapsulate the class:

class myClass implements Serializable
{
      add some properties

     public myClass( myNonSerializableInterface data )
     {
             add members from data to properties
    }

    public myNonSerializableInterface create()
    {
          return ??
    }
}

My problem is, that I don't know in which way I can restore the 
interface object?
So I need to store the object name. Can anybody help me to create a working
serializable structure? I'm a little bit confused at the moment to 
solve the problem

Thanks a lot

Phil

Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

store / load a non-serializable interface Philipp Kraus <philipp.kraus@flashpixx.de> - 2014-05-19 22:01 +0200
  Re: store / load a non-serializable interface markspace <markspace@nospam.nospam> - 2014-05-19 16:36 -0700
  Re: store / load a non-serializable interface Arne Vajhøj <arne@vajhoej.dk> - 2014-05-19 19:54 -0400
    Re: store / load a non-serializable interface Philipp Kraus <philipp.kraus@flashpixx.de> - 2014-05-20 07:01 +0200

csiph-web