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

[RFC] Injectable 的时候增加 accessLevel 属性 #116

Open
hyj1991 opened this issue Jun 23, 2022 · 1 comment
Open

[RFC] Injectable 的时候增加 accessLevel 属性 #116

hyj1991 opened this issue Jun 23, 2022 · 1 comment

Comments

@hyj1991
Copy link
Member

hyj1991 commented Jun 23, 2022

@Injectable({
  scope: EXECUTION,
  accessLevel: 'private'
})
export default class A {

};

其中 accessLevel 属性为 private / public,用来控制当前的类是否可以在 plugin / framework 之外被 @Inject

这是一个新的特性,可以讨论下细节。

@hyj1991
Copy link
Member Author

hyj1991 commented Jun 23, 2022

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

1 participant