Use Spring Service in Plugin

已回答

Hello!

I would like to know if you can dependency inject services into a custom IntelliJ Plugin.

Thank you!

1

Hi,

No, the IntelliJ Platform uses its own services mechanism:
https://plugins.jetbrains.com/docs/intellij/plugin-services.html

Services should never be injected into other services. They should be retrieved lazily just before they are needed and never stored in objects. See the warning box in:
https://plugins.jetbrains.com/docs/intellij/plugin-services.html#constructor

1

Thank you for your answer, Karol!

0

请先登录再写评论。