IDEA-CR-49349: skip hotswap flag javadoc

GitOrigin-RevId: b17122635b4d49939f44bb684fd3e6b66c9f6d11
This commit is contained in:
Vladislav.Soroka
2019-07-02 06:52:16 +03:00
committed by intellij-monorepo-bot
parent 01898c8e35
commit b90554f06b
@@ -39,6 +39,15 @@ import java.util.*;
import java.util.stream.Collectors;
public class HotSwapUIImpl extends HotSwapUI {
/**
* There are cases when the hotswap of the changed classes is not needed.
* E.g. for a tomcat application redeploy there's no need to even try reloading classes and it's only can cause hotswap failure UX issue.
* <p>
* The flag can be used to skip hotswap after the ProjectTaskManager run session finish.
* To apply the flag one should add it to {@link ProjectTaskContext} user data.
*
* @see ProjectTaskContext#withUserData(Key, Object)
*/
public static final Key<Boolean> SKIP_HOT_SWAP_KEY = KeyWithDefaultValue.create("skip_hotswap_after_this_compilation", false);
private static final Key<HotSwapStatusListener> HOT_SWAP_CALLBACK_KEY = Key.create("hot_swap_callback");