Skip to content

成员变量的疑惑 #24

Open
Open

Description

@ShengjieGeng

求解,谢谢
default

Activity

  1. ShengjieGeng commented on Apr 16, 2018

    @ShengjieGeng
    Author

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

  2. SpinyTech commented on Apr 16, 2018

    @SpinyTech
    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

  3. ShengjieGeng commented on Apr 16, 2018

    @ShengjieGeng
    Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions