Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 03-17-2004
enzo enzo is offline
Registered User
 
Name: Enzo Larsen
Organization: digitalspass
Project: Forum
 
Join Date: Mar 2004
Posts: 6
Question Object Factory

Hi

In the section 21.6.2 Implementing The file system server in C++.
An Object Factory is used on the documentation side's Ice1.1.1 page 595 and Ice1.3.0 page 618.
The explanation in the section 21.5.2 of Object Factories.
Documentation side´s Ice1.1.1 page 589 and Ice1.3.0 page 610 says, The Freeze evictor is are generic facility in that it manages instances of Object subclasses.

I want to produce an Instance of a class in the DB, can I use the Object Factory of this class?

Thx 4 help
enzo
Reply With Quote
  #2 (permalink)  
Old 03-17-2004
mes's Avatar
mes mes is online now
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 971
Hi,

Sorry, I'm not sure I understand your question. You can find examples of using the Freeze evictor and object factories in the demo/Freeze/library and demo/Freeze/phonebook.

Take care,
- Mark
Reply With Quote
  #3 (permalink)  
Old 03-17-2004
enzo enzo is offline
Registered User
 
Name: Enzo Larsen
Organization: digitalspass
Project: Forum
 
Join Date: Mar 2004
Posts: 6
// Create the root node if it doesn't exist
//
Ice.Identity rootId =
Ice.Util.stringToIdentity("RootDir");
if(!evictor.hasObject(rootId))
{
PersistentDirectory root = new DirectoryI(rootId);
root.nodeName = "/";
root.nodes = new java.util.HashMap();
evictor.createObject(rootId, root);
}



PersistentDirectory root = new DirectoryI(rootId);

can I do this by the Factory?
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about proxy's factory methods. rc_hz Help Center 7 09-05-2006 08:58 AM
How to release object. laotee Help Center 12 08-30-2005 12:48 AM
Object Factories and object initialisation Nis Baggesen Help Center 1 09-30-2004 08:40 AM
thread per object Harvinder Comments 3 06-21-2004 05:12 PM
Object Replication? rstolle Help Center 3 03-29-2004 05:36 PM


All times are GMT -4. The time now is 09:30 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.