• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Mike London

Autowiring bean based on command line arguement

Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I'm a beginner to spring framework.
Using it to develop a java command line program.

I'm trying to create my bean based on value being passed via command line argument which at this point fails.

As for my code:
Main Class

Data Service class (works fine so far)

Processor (abstract class)

TempProcessorImpl class (this is to be created based on command line argument)

running the application via command line with args: java -jar TestProject.jar -Dfield="TEMP"

any suggestion would be helpful ?
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic