Re: Keeping a factory around



> 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]