Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

成员变量的疑惑 #24

Open
ShengjieGeng opened this issue Apr 16, 2018 · 3 comments
Open

成员变量的疑惑 #24

ShengjieGeng opened this issue Apr 16, 2018 · 3 comments

Comments

@ShengjieGeng
Copy link

求解,谢谢
default

@ShengjieGeng
Copy link
Author

刚接触到这个架构,还在专研中

@SpinyTech
Copy link
Owner

mLogicList是当前进程的所有逻辑列表,mLogicClassMap是所有进程的逻辑列表map。
registerApplicationLogic需要在initializeLogic方法里调用,类似下面(该代码在com.spinytech.maindemo.MyApplication

        registerApplicationLogic("com.spinytech.maindemo",999, MainApplicationLogic.class);
        registerApplicationLogic("com.spinytech.maindemo",998, WebApplicationLogic.class);
        registerApplicationLogic("com.spinytech.maindemo:music",999, MusicApplicationLogic.class);
        registerApplicationLogic("com.spinytech.maindemo:pic",999, PicApplicationLogic.class);

注册之后,MaApplication会调用dispatchLogic,从mLogicClassMap,根据当前的PID将逻辑列表查找出来,赋给mLogicList

@ShengjieGeng
Copy link
Author

好的,了解。谢谢大神(●ˇ∀ˇ●)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants