Skip to content

BaseApplication里面遍历application的代理类这块感觉要是类很多会耗性能 #26

@IdealMiracle

Description

@IdealMiracle

大神求解:
mAppDelegateList = ClassUtils.getObjectsWithInterface(this, IApplicationDelegate.class, ROOT_PACKAGE);
这里查找对应包下面所有的类 进行遍历如果app的类过多是不是会耗性能呢?

因为代理类一般一个模块只有一个类你这边取名低MyDelegate
可否根据配置文件拿到主工程依赖的子模块名称 然后直接去找到对应的 package.model.MyDelegate呢?

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