restore note that better to not use ApplicationComponent

This commit is contained in:
Vladimir Krivosheev
2019-01-03 11:58:18 +01:00
parent 0c7e6d8ade
commit 141b85e32c
@@ -1,7 +1,13 @@
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.openapi.components;
/**
* Please use application services or extensions instead of application component, because
* if you register a class as an application component it will be loaded, its instance will be created and
* {@link #initComponent()} methods will be called each time IDE is started even if user doesn't use any feature of your
* plugin. So consider using specific extensions instead to ensure that the plugin will not impact IDE performance until user calls its
* actions explicitly.
*
* @deprecated This interface is not used anymore. Application component do no need to extend any special interface.
*
* Instead of {@link #initComponent()} please use {@link com.intellij.util.messages.MessageBus} and corresponding topics.
@@ -12,7 +18,7 @@ package com.intellij.openapi.components;
@Deprecated
public interface ApplicationComponent extends BaseComponent {
/**
* @deprecated Not used anymore.
* @deprecated Adapter not required since Java 8 is used.
*/
@Deprecated
class Adapter implements ApplicationComponent {