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 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: 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 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