@com.intellij.openapi.components.Service
annotation
instead of being registered as services in plugin.xml
A service that is not intended for overriding is not required to be registered in the plugin.xml
file.
Instead, annotate the service class with the @Service
annotation. For project-level services, specify
@Service(Service.Level.PROJECT)
.
Requirements:
final
.serviceInterface
is not specified.com.intellij.openapi.components.PersistentStateComponent
,
roaming must be disabled (roamingType = RoamingType.DISABLED
).
os
, client
, overrides
, id
, preload
.See Services in IntelliJ Platform Plugin SDK docs for more details.
See also the Plugin DevKit | Plugin descriptor | A service can be converted to a light one
inspection.
New in 2023.2