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
Currently it isn't possible to create @Command objects without a no-arg constructor since picocli.AutoComplete is hardcoded to use the default IFactory implementation. This means it isn't possible to use constructor injection to set dependencies as final fields.
Possibilities include specifying the IFactory class name as an argument to the tool or using the Java service loader mechanism.
The text was updated successfully, but these errors were encountered:
I pushed a change that implements this request to master.
This is the new option:
" -c, --factory=<factoryClass>%n" +
" Optionally specify the fully qualified class name of%n" +
" the custom factory to use to instantiate the command%n" +
" class. When omitted, the default picocli factory is%n" +
" used.%n" +
Currently it isn't possible to create
@Command
objects without a no-arg constructor sincepicocli.AutoComplete
is hardcoded to use the defaultIFactory
implementation. This means it isn't possible to use constructor injection to set dependencies asfinal
fields.Possibilities include specifying the
IFactory
class name as an argument to the tool or using the Java service loader mechanism.The text was updated successfully, but these errors were encountered: