Skip to content

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

@hyj1991

Description

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

};

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions