Use of ServiceManager

So what's the deal using ServiceManager instead of "old-style" application/project/module components? Lazy loading of components? Or more?

2 comments

Hello Yann,

So what's the deal using ServiceManager instead of "old-style"
application/project/module components? Lazy loading of components? Or
more?


Lazy loading. For old-style components, the contract specifies a lifecycle:
the component gets created and notified during the project opening process.
For services, there's no such contract, so we don't even load the class implementing
the service until someone requests it.

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Thanks for the explanation. I guess this can be copied to ServiceManager JavaDoc as it is :)

0

Please sign in to leave a comment.