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

Use airline with Spring DI fails in parse #90

Open
ssnyder opened this issue Apr 8, 2019 · 2 comments
Open

Use airline with Spring DI fails in parse #90

ssnyder opened this issue Apr 8, 2019 · 2 comments
Labels
bug Bug documentation Documentation Changes more-info-needed More info needed to asses the issue

Comments

@ssnyder
Copy link

ssnyder commented Apr 8, 2019

I have a very simple application that is using Spring for DI, and when parsing the commandline If I run the command it fails (parser.parse(args)) because I do not have a no-parameter constructor.

Other than getting the parsedOptions in the state object, and manually setting the variables manually is there a supported solution? Examples?

Thanks!

@rvesse
Copy link
Owner

rvesse commented Apr 9, 2019

You may have to do some customisation of the command factory similar to #77 which was Google Guice related but likely the same basic problem.

FYI your report as it stands is unactionable, I haven't used Spring DI in years and so with your generic description can't really help you any further. Please provide a Minimal Complete Verifiable Example if you would like further help.

@rvesse rvesse added bug Bug documentation Documentation Changes more-info-needed More info needed to asses the issue labels Apr 9, 2019
@ssnyder
Copy link
Author

ssnyder commented Apr 18, 2019

I apologize for the weird report. I guess one thing that would have helped me was better documentation on how to use this with a Spring Application - or how to gather the list of parameters when a zero-argument constructor is not available. I expect that the Google Guice issue was similar from the description.

Unfortunately I do not currently have an example - but will attempt to get one together for you that is not going to violate any policies at my company :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug documentation Documentation Changes more-info-needed More info needed to asses the issue
Projects
None yet
Development

No branches or pull requests

2 participants