Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Singletons and Marshalling

Reply
Thread Tools

Singletons and Marshalling

 
 
Charles Hixson
Guest
Posts: n/a
 
      11-14-2003
Does anyone know how singleton's and marshalling interact?

In particular, I want to have my singleton class be able to dump and
load (and be saved on a file). So I'm wondering if there are any
methods to be implemented that would enable this.

In particular, I'm composing a kind of container class that will contain
either an array, a hash, or possibly both of values. Dumping it should
be basically dumping all the members of the hash/array (plus a few
more), and restoring should append the contents of the being-restored
value to the one in memory. (Duplicates aren't a problem as they'll
just be dropped.)

If this can't be done, there are other approaches, but as they involve
things like private class variables & classes that are only used
internally as a cache.... well, the other approach looks cleaner, if
it's possible.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RMI, singletons and multiple classloaders in Weblogic Michael Brown Java 3 08-09-2004 08:49 PM
where to find good patterns and sources of patterns (was Re: singletons) crichmon C++ 4 07-07-2004 10:02 PM
C++ singletons and .NET AppDomains Yevgeny Menaker ASP .Net 1 01-17-2004 04:24 AM
C++ singletons and .NET AppDomains Yevgeny Menaker ASP .Net 0 01-10-2004 12:41 PM
C++ singletons and .NET AppDomains Yevgeny Menaker ASP .Net 0 01-10-2004 12:40 PM



Advertisments