sting-ioc / sting

https://sting-ioc.github.io
Apache License 2.0
8 stars 0 forks source link

Only allow @ContributeTo annotations on sting types #46

Closed realityforge closed 4 years ago

realityforge commented 4 years ago

Allow @ContributeTo annotations when the type has a @StingProvider or @ActAsStingComponent annotation else not. We want to do things like allow a @ReactComponent or @ArezComponent annotated type to copy the @ContributeTo annotation to the generated subclasses so that the ultimate binding can be collected.

realityforge commented 4 years ago

We were already enforcing that @ContributeTo was only used by @Injectable and @StingProvider types. Added support for @ActAsStingComponent in 18eb589066a8bae62038951b7942a897b4d69025