Re: Keeping a factory around
- From: Miguel de Icaza <miguel ximian com>
- To: ERDI Gergo <cactus cactus rulez org>
- Cc: gnome-components-list gnome org
- Subject: Re: Keeping a factory around
- Date: 16 Jan 2001 15:13:52 -0500
> Most factory processes exit after the last instance of the created objects
> is destroyed. Is there a way to ``ref the factory''? I'm thinking about
> such use cases of Bonobo-Media as the preview of music files in Nautilus:
> this would load and unload the factory everytime a new preview is
> requested (i.e. every time the user rests the pointer above a music
> file's icon), which could cause a longer delay before the playback can
> start.
The destruction of the factory object is done in your own server
code. You get to choose whether you shut down yourself or not, it is
not a behaviour enforced anywhere, it is just a common programming
pattern for those guys that have been writing components.
You are free to not track object life time and keep your server
around; Or keep track of it, and shut down after a period of
inactivity.
Best wishes,
Miguel.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]