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

既然 BHContext 和 BeeHive 都被设计成单例,为什么 BeeHive 还需要依赖注入 context ? #111

Open
heistings opened this issue Feb 6, 2018 · 1 comment

Comments

@heistings
Copy link

既然 BHContext 和 BeeHive 都被设计成单例,为什么 BeeHive 还需要依赖注入 context ?

[BHContext shareInstance].env = BHEnvironmentDev; //定义应用的运行开发环境
[BHContext shareInstance].application = application;
[BHContext shareInstance].launchOptions = launchOptions;
[BHContext shareInstance].moduleConfigName = @"BeeHive.bundle/CustomModulePlist";//可选,默认为BeeHive.bundle/BeeHive.plist
[BHContext shareInstance].serviceConfigName =  @"BeeHive.bundle/CustomServicePlist";//可选,默认为BeeHive.bundle/BHService.plist
[[BeeHive shareInstance] setContext:[BHContext shareInstance]];
@SoXeon
Copy link
Contributor

SoXeon commented Mar 13, 2018

设计上存在不合理性,欢迎来修改~

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