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: Add a new decorator to classify bindable classes/providers #958

Closed
raymondfeng opened this issue Feb 4, 2018 · 3 comments
Closed
Labels

Comments

@raymondfeng
Copy link
Contributor

raymondfeng commented Feb 4, 2018

To allow boot to discover and bind certain artifacts such as providers, controllers, repositories, or other classes, a decorator is desirable to add metadata to the class. For example:

@bindable({type: 'controller', name: 'my-controller', tags: [], scope: BindingScope.SINGLETON})
class MyController {
}

@bindable({type: 'booter', name: 'swagger-booter', tags: [], scope: BindingScope.SINGLETON})
class SwaggerBooter {
}

@bindable({type: 'provider', name: 'swagger-booter'})
class LogLevelProvider {
}
@shimks
Copy link
Contributor

shimks commented Jul 26, 2018

Can you update the issue description with what the full metadata should look like?

@bajtos bajtos added post-GA and removed LB4 GA labels Jul 30, 2018
@dhmlau dhmlau removed the non-DP3 label Aug 23, 2018
@dhmlau dhmlau removed the post-GA label Nov 2, 2018
@stale
Copy link

stale bot commented Oct 28, 2019

This issue has been marked stale because it has not seen activity within six months. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository. This issue will be closed within 30 days of being stale.

@stale stale bot added the stale label Oct 28, 2019
@stale
Copy link

stale bot commented Nov 27, 2019

This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository.

@stale stale bot closed this as completed Nov 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants