Is your feature request related to a problem? Please describe.
It's very easy to forget about updating META-INF/services for ServiceLoader every time HandlerFactory or ActionFactory is created/deleted.
Describe the solution you'd like
An annotation could be used to automaticaly detect factories. One existing solution is Google's AutoService. Using it with Knot.x would look like this:
@AutoService(HandlerFactory.class)
class MyHandlerFactory implements HandlerFactory {
// …
}
No need to manually update the META-INF. Same for action factories.
Describe alternatives you've considered
Custom Knot.x annotations could be developed, but it would require a lot more work to do.
Is your feature request related to a problem? Please describe. It's very easy to forget about updating
META-INF/services
for ServiceLoader every time HandlerFactory or ActionFactory is created/deleted.Describe the solution you'd like An annotation could be used to automaticaly detect factories. One existing solution is Google's AutoService. Using it with Knot.x would look like this:
No need to manually update the
META-INF
. Same for action factories.Describe alternatives you've considered Custom Knot.x annotations could be developed, but it would require a lot more work to do.