Hi,

i have a question about static references and how they are treated in OSGi.

Will singletons stay in memory after a bundle has been unloaded and
leak memory, or can i safely create huge amounts of static references?
And what about ThreadLocals? Can I use them safely as well? I see some
projecs use the "bundle activator singleton" pattern to access
resources throughout the code, but a tiny voice behind my ear tells me
that it might not be a good idea, is that voice right or wrong?

Thank you

-atle

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to