You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package com.fr.start.module;
|
|
|
|
|
|
|
|
import com.fr.design.module.DesignerModule;
|
|
|
|
import com.fr.general.ModuleContext;
|
|
|
|
import com.fr.locale.InterMutableKey;
|
|
|
|
import com.fr.module.Activator;
|
|
|
|
import com.fr.module.extension.Prepare;
|
|
|
|
import com.fr.stable.module.ModuleListener;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Created by juhaoyu on 2018/1/31.
|
|
|
|
* 触发原来的DesignerModule的启动
|
|
|
|
* 之后慢慢将DesignerModule拆成Activator
|
|
|
|
*/
|
|
|
|
public class DesignerModuleActivator extends Activator implements Prepare {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void start() {
|
|
|
|
|
|
|
|
ModuleContext.registerModuleListener(getModule().upFindSingleton(ModuleListener.class));
|
|
|
|
ModuleContext.startModule(DesignerModule.class.getName());
|
|
|
|
ModuleContext.clearModuleListener();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void stop() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void prepare() {
|
|
|
|
|
|
|
|
addMutable(InterMutableKey.Path, "com/fr/design/i18n/designer");
|
|
|
|
}
|
|
|
|
}
|