From e6255292a193cb56ed1fc38e5e8c6fc7cc744ebf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20C=C3=A9bron?= Date: Thu, 19 Dec 2019 10:06:26 +0100 Subject: [PATCH] plugin_services.md: cleanup --- basics/plugin_structure/plugin_services.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/basics/plugin_structure/plugin_services.md b/basics/plugin_structure/plugin_services.md index 6743c7235..ec463c653 100644 --- a/basics/plugin_structure/plugin_services.md +++ b/basics/plugin_structure/plugin_services.md @@ -2,7 +2,7 @@ title: Plugin Services --- -A _service_ is a plugin component loaded on demand when your plugin calls the `getService` method of the [`ServiceManager`](upsource:///platform/core-api/src/com/intellij/openapi/components/ServiceManager.java) class. +A _service_ is a plugin component loaded on demand when your plugin calls the `getService()` method of the [`ServiceManager`](upsource:///platform/core-api/src/com/intellij/openapi/components/ServiceManager.java) class. The *IntelliJ Platform* ensures that only one instance of a service is loaded even though the service is called several times. A service must have an implementation class which is used for service instantiation. A service may also have an interface class which is used to obtain the service instance and provides API of the service. The interface and implementation classes are specified in the `plugin.xml` file. @@ -32,12 +32,12 @@ To clarify the service declaration procedure, consider the following fragment of ```xml - + - + ```