Harrison
2 years ago
4 changed files with 41 additions and 11 deletions
@ -0,0 +1,25 @@
|
||||
package com.fr.start.module.optimized; |
||||
|
||||
import com.fr.start.common.DesignerStartupContext; |
||||
import com.fr.update.activator.BasicUpdateActivator; |
||||
import com.fr.update.base.FineUpdateUnit; |
||||
|
||||
/** |
||||
* created by Harrison on 2022/08/11 |
||||
**/ |
||||
public class DesignUpdateActivator extends BasicUpdateActivator { |
||||
|
||||
@Override |
||||
public void start() { |
||||
|
||||
if (DesignerStartupContext.getInstance().onWarmup()) { |
||||
try { |
||||
prepare4Start(); |
||||
FineUpdateUnit.makeNew(); |
||||
} catch (Throwable ignore) { |
||||
} |
||||
} else { |
||||
super.start(); |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue