You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I'm in a situation where I mixin to an interface.
I'd like to @Inject into a public static method but I can't because the system wants my injection method to be private|protected static but this is not possible for interface methods.
Theoretically there shouldn't be a huge difference between static methods on classes and interfaces.
The text was updated successfully, but these errors were encountered:
Ah I see, yes. The restriction is basically there to stop people adding public static members to mixins because under normal circumstances there would be no way to invoke them. However this restriction could be removed in both of the following cirumstances:
The mixin is an interface mixin and the method is decorated with an injector annotation (your scenario)
The mixin is an Accessor Mixin, which are in fact loadable and can be referenced by userland code (and other mixin code)
Will relax this restriction and consider it enhancement.
So I'm in a situation where I mixin to an interface.
I'd like to
@Inject
into apublic static
method but I can't because the system wants my injection method to beprivate|protected static
but this is not possible for interface methods.Theoretically there shouldn't be a huge difference between static methods on classes and interfaces.
The text was updated successfully, but these errors were encountered: