Discover full java className for import;

getJavaFullClassName SpringComponent
If you want to code without a IDE, using java may be painful to discover correct full class names to import. This script google it with javadoc word, then with some luck we got the javadoc as first item. next it curl the target javadoc and extract full name from it. Can by customized to extract other javadoc infos. Pre-reqs: bash, google-chrome, html2text and core-utils
Sample Output
getJavaFullClassName(){ className=$1; curl -s $(google-chrome --headless --dump-dom "https://www.google.com/search?q=javadoc+$className" 2>/dev/null | html2text | grep "^  1."| head -1 | cut -d: -f4- | sed 's/+&cd=1&.*)$//g') | html2text | grep -i Frames | head -1 | cut -d? -f2 | cut -d. -f1 | tr / . ; }                                   
$ getJavaFullClassName SpringComponent
org.springframework.stereotype.Component
$ getJavaFullClassName String
java.lang.String
$ getJavaFullClassName SpringValue
org.springframework.beans.factory.annotation.Value
$ getJavaFullClassName SpringAutowired
org.springframework.beans.factory.annotation.Autowired
$ getJavaFullClassName WebLogicBean
weblogic.management.runtime.MessageDrivenEJBRuntimeMBean
$ getJavaFullClassName MessageDrivenEJB
$ getJavaFullClassName MessageDrivenEJBRuntimeMBean
weblogic.management.runtime.MessageDrivenEJBRuntimeMBean

1
2018-09-06 18:22:02

What Others Think

http://www.timberlandproworkboots.us http://www.adidasstore.com.co http://www.jacketoutlet.us.com http://www.pandorabracelets.us.org http://www.nikeoutletonline.com.co http://www.oksunglassesformen.us http://www.adidasyeezysboost.us.com http://www.nikeclearance.us.org http://www.airmax97.com.co http://www.pandorajewelryus.org http://www.long-champ.us.org http://www.nikesneakers.us.org http://www.ferragamo-belt.us http://www.eccoshoesformen.us.com http://www.handbagsclearance.us.com http://www.christianlouboutins-shoes.us http://www.yeezys-boost.org http://www.moncler-sale.us.com http://www.monclers-jackets.us http://www.birkenstocksandalsoutlets.us.com http://www.fit-flop.us.com http://www.pandorasjewelry.us.org http://www.pandoraus.us.org http://www.redbottom-shoes.com.co http://www.jordanretro13.us.com http://www.timberlands-boots.us.com http://www.mcm-backpack.us.com http://www.timberlandsboots.us http://www.nmdsadidas.us http://www.fitflopswebsite.us http://www.oakleycom.us http://www.birkenstocks-outlet.us http://www.fitflopscom.us.com http://www.adidas-runningshoes.us http://www.coach-bags.com.co http://www.airmax-270.org http://www.nike-factorystore.us.com http://www.nikeshoesoutletstores.us http://www.air-max97.us http://www.pumas.us.org http://www.toryburch-sale.us.com http://www.charms-pandora.us.org http://www.pandoracom.us.org http://www.harden-shoes.us.com http://www.jewelrypandoras.us http://www.adidassneakers.us http://www.uggs-clearance.com.co http://www.moncler-coats.us.com http://www.adidas-store.us.org http://www.nike-outletstoreonline.us.com http://www.handbagsonline.us.com http://www.redbottomscom.us.com http://www.jordan12.com.co http://www.adidasus.us.com http://www.adidas-ultraboost.org http://www.canadagooseclothing.us http://www.nikeshoescom.us.com http://www.mbtshoesclearanceoutlet.us http://www.canadagoose-jacket.us http://www.uggsslippers.us.com http://www.jordanretro12.us http://www.michaelkors-wallets.us.com http://www.superstarshoes.us http://www.oksunglassesus.us http://www.adidas-boost.us http://www.adidasnmds.org http://www.timberlandsbootsoutlet.us http://www.pandoracharmsofficialsite.us.com http://www.soccershoes.com.co http://www.louboutinsshoes.us http://www.jordan-sneakers.us http://www.nikevapor.us.com http://www.nike-outletonline.us.org http://www.pandorarings.us.org http://www.jordanretro.com.co http://www.michaelkorscrossbody.us.com http://www.coachhandbagsus.us.com http://www.max97.org http://www.adidas-store.us.com http://www.adidasoutlet-stores.us http://www.nikeuktrainers.org.uk http://www.ralphlaurenpolocom.us.com http://www.nikeoutletstoresonlineshopping.us http://www.pandorabracelet-jewelry.us http://www.pandora-jewelrycharms.us http://www.yeezys-adidas.us http://www.raybanglassessale.us http://www.retro12.us.com http://www.nikeoutletstoreonlineshopping.org http://www.ray-bans-sunglasses.us http://www.officialpandoracharms.us http://www.air-max95.us http://www.pandora-jewellery.us.com http://www.adidas-sneakers.us.com http://www.nikeoutletuk.org.uk http://www.birkenstocksoutlet.us http://www.pandoras-jewelry.us http://www.vapormax-plus.us http://www.nikeoutletstoreonlineshopping.us.org http://www.birken-stock.us http://www.birkenstockshoesoutlet.us http://www.pandora-charms-jewelry.us http://www.adidas-yeezy.com.co http://www.poloralphlaurenoutletus.us.com http://www.northfaceoutletonlineus.us.com http://www.michaelkorsoutletclearances.us http://www.fitflopsale-clearance.us http://www.toryburchshoes.com.co http://www.nikeshoesforwomen.us http://www.christianlouboutinus.us.com http://www.toryburch-handbags.us.com http://www.ysl-bags.us http://www.adidassuperstarwomen.us.com http://www.soccercleats.com.co http://www.jordan-14.us http://www.pandora-shop.us http://www.christianlouboutinsoutlets.us http://www.adidasyeezy-shoes.org http://www.raybans-eyeglasses.us http://www.adidasyeezys-boost.us http://www.monclerwebsite.us http://www.puma-outlets.us http://www.mcm-bags.com.co http://www.philipp-plein.us http://www.vapormaxflyknit.org http://www.timberlandsshoes.us http://www.yeezyssneakers.us http://www.adidas-boost.us.com http://www.oakleyeyeglassessale.us http://www.katespade-outletsonline.us http://www.michaelkors-outlets.com.co http://www.valentinooutletus.us.com http://www.nikeclearance-store.us http://www.coachusa.com.co http://www.adidasultraboost.com.co http://www.jordan-10.us http://www.pandoracharmscom.us.com http://www.jordan-4.us http://www.curry5shoes.org http://www.pandora-jewelryofficialsite.us http://www.officialpandoracharms.us.com http://www.airmax95.com.co http://www.pandora-charmsjewelry.us http://www.uggsshoes.us.com http://www.salvatore-ferragamo.com.co http://www.airvapormax.us http://www.nikevapormaxuk.org.uk http://www.adidasoutletonline.us http://www.nikeairmax-270.us.com http://www.balenciagasneakers.com.co http://www.nikesneakers.com.co http://www.retro11.us.com http://www.bottegavenetahandbags.us http://www.timberlandus.us.com http://www.timberlandcom.us http://www.yeezy-shoes.com.co http://www.monclerjackets-sale.us.com http://www.adidasoutletus.us.com http://www.air-max.us.org http://www.birkenstocksoutlet.us.org http://www.redbottomsshoes.com.co http://www.birkenstocks-shoes.us http://www.nike-sneakers.us.org http://www.timberlandbootsoutlets.us http://www.coachoutletoutlet.us http://www.katespade-purses.us http://www.birkenstocks-sandals.us http://www.fit-flops.com.co http://www.eyeglasses-oakley.us http://www.yeezy-boost.com.co http://www.nike-outlets.us.org http://www.timberlandworkboots.us http://www.birkenstockoutletcom.us.com http://www.bottega-veneta.com.co http://www.pandoracharmssale-clearance.us http://www.nike--outlet.us.org http://www.charmspandora.us http://www.ecco-shoes.us.org http://www.pandorasjewelryofficialsite.org http://www.jordan-retro.us.org http://www.coachoutletstoreofficial.us http://www.retro13.us.com http://www.yeezus.us.com http://www.birkenstocksandalsoutlets.us http://www.pandorabraceletofficialsite.us http://www.timberlandbootsofficial.us http://www.curry-5.us.org http://www.michaelkorshandbagsoutletonline.com.co http://www.yeezy-online.us.com http://www.oksunglassescanada.com http://www.canadiangoosejackets.us http://www.nike-shoesoutlets.us http://www.philippplein.us http://www.cleats.us.com http://www.cheap-nike.us.com http://www.balenciagacom.us http://www.nike-soccer.us http://www.pandoracharmsbracelet.us http://www.bestjackets.us.com http://www.red-bottom.us.com http://www.canadagoosejacketsale.us http://www.eccoshoes.com.co http://www.timberlandsoutlet.us.com http://www.nikeoutletstoreus.us.com http://www.nikefactory-store.us http://www.adidasyeezys.com.co http://www.louboutins.us.org http://www.nikestore-outlet.us http://www.adidas-soccer.us http://www.pandorajewelry-bracelet.us http://www.jordanretro10.us http://www.air-vapormax.org http://www.nike-factory.us.org http://www.nike-clearance.org http://www.adidasyeezy-boost.org http://www.airjordan14.us http://www.jordans-shoes.us.org http://www.adidas-yeezyshoes.us http://www.coatsclearance.us.com http://www.katespade-sale.us http://www.airmax98.us http://www.hardenvol2.us http://www.pumasshoes.us http://www.shoeslouboutins.us http://www.ultra-boost.org http://www.oakleys-canada.com http://www.fitflopsaleclearance.org http://www.nikeinc.us.com http://www.nikeshoesclearance.us http://www.officialpandorajewelrysite.us.com http://www.coach-wallets.us http://www.yslhandbags.com.co http://www.raybanssunglassessale.us http://www.adidasoutlets.com.co http://www.nikeairmax270.us.org http://www.nike-outletstore.org http://www.nike--shoes.us.org http://www.uggsforwomen.com.co http://www.coach-purses.us.org http://www.pandoras-outlet.us http://www.jordanssneakers.us http://www.moncleroutlet-jackets.us http://www.nike-outletstore.us.org http://www.fitflopsforwomen.us http://www.katespadeoutletus.us.com http://www.eccoshoesforwomen.us http://www.jordan11.com.co http://www.coachcom.us http://www.sunglassesrayban.us http://www.michaelkorsoutletshandbags.us.com http://www.pandora-jewellery.us http://www.timberlands-outlet.us.org http://www.birkenstocksshoes.us http://www.jordan-13.us.com http://www.uggofficialsite.us.com http://www.red-bottoms-shoes.us.com http://www.christianlouboutincom.us.com http://www.eyeglasses-rayban.us http://www.adidasnmdsr1.us http://www.jordanretro11s.us http://www.birkenstockssandals.us.org http://www.jordanretro-8.us http://www.timberlands.com.co http://www.adidas-yeezy.org http://www.adidas-shoes.us.org http://www.ugg-australia.us.org http://www.adidasnmd.org http://www.fitflop.com.co http://www.pandorajewelryofficialsites.us.com http://www.timberlandbootsforwomen.us.com http://www.bracelet-pandora.us.com http://www.mbt-sale.us http://www.ringspandora.us.com http://www.pandoraringsofficialsite.us http://www.timberlands-boots.org http://www.oakleyglassessale.us http://www.birkenstocksus.us.com http://www.redbottomus.us.com http://www.coach-outletstores.us http://www.ugg-slippers.us.org http://www.fitflopssale.us.org http://www.katespadeoutlet-handbags.us.com http://www.roshenike.us http://www.air-max.com.co http://www.nikefactoryoutlet.us.org http://www.ugg-sale.us.com http://www.nike-airmax.us.org http://www.yeezyadidasshoes.us.com http://www.jewelry-pandora.us.org http://www.air-max-270.us http://www.adidasshoesoutlets.us http://www.nikesale.us.com http://www.nikeoutletstoreonline.com.co http://www.adidascom.us.com http://www.canadagoose-sale.us http://www.pandorajewelryblackfriday.us http://www.pandoracharmsdeals.us.com http://www.jacketsnorthface.us.com http://www.michaelkorsoutletsonline.com.co http://www.pandorajewelryofficialstore.us.com http://www.coachhandbagsstore.us.com http://www.pandorajewelrydeals.us http://www.michaelkorshandbags-outletonline.us http://www.canadagoose-clothing.us.com http://www.pandorajewelryfriday.us.com http://www.coachoutletfriday.us.com http://www.coachoutletdeals.us.com http://www.northfaceoutlet-online.us.com http://www.coach-outletonline.com.co http://www.michaelkorsoutletdeals.us http://www.canadagoosejacketsale.us.com http://www.michaelkorsfriday.us.com http://www.slippersoutlet.us http://www.coachoutlethandbags.us 2018.0918W
Lisawhip · 1 day ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: