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


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

store / load a non-serializable interface

From Philipp Kraus <philipp.kraus@flashpixx.de>
Newsgroups comp.lang.java.programmer
Subject store / load a non-serializable interface
Date 2014-05-19 22:01 +0200
Organization 1&1 Internet AG
Message-ID <lldnvh$e29$1@online.de> (permalink)

Show all headers | 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