P
Philipp Kraus
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
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