Friday, June 18, 2010

Annotation Scanning Standard

We (the industry) need to get something in place for Java EE 7 to get scanning under control at a platform level. The metadata-complete concept of each individual spec is less helpful given the growing number of specifications that can have class-level "discoverable" annotations.

The rules we have for scanning for ejbs in a webapp are quite unintuitive. And how they relate to the scanning of the new Java EE 6 level annotations are unintuitive to the point that how they are handled, I bet, is rather vendor specific:

  • @DataSourceDefinition(s)
  • @ManagedBean

    The cost of scanning a jar is constant in that it doesn't matter how many annotations you might be looking for or what spec they come from. If each individual spec continues to add spec-specific descriptor support for specifying which jars to scan, we're going to wind up with a rather big mess.

    We should lock this down with a clean and simple file to control which jars.

    Something as simple as the following would be a massive improvement.

    META-INF/scanning.xml

    <scanning>
      <jars>
        <jar>foo.jar</jar>
        <jar>bar.jar</jar>
      </jars>
      <packages>
        <package>org.foo.widgets</package>
        <package>com.bar.components</package>
      </packages>
    </scanning>
    
    I'd love it to have regex support, but even without it there's a big improvement.
  • 25 comments:

    Narender Godara said...

    Packers and movers Ludhiana
    Packers and movers Mangalore
    Packers and movers Marathahalli
    Packers and movers Meerut

    Arjun Singh said...

    We can’t predict every organization likes their clients and perform for the customers’ well being. Most of the firmly activities are not excellent and they introduce lots of benefits and discounts only
    Thanks for sharing your info. I really appreciate your efforts and I will be waiting for your further write
    Packers and Movers Navi Mumbai
    Packers and Movers Thane
    Packers and Movers Ghaziabad
    Packers and Movers Faridabad

    amine lahragui said...

    Your work is very good and I appreciate you and hopping for some more informative posts. happy new year 2016 new year 2016 bonne année 2016 happy new year 2016 images feliz año nuevo 2016 imagenes de año nuevo 2016 feliz año 2016

    Deepak Negi said...

    Hey Guys Must Check these :-

    I can do that live show
    I can do that live telecast
    I can do that Show live streaming
    muharram 2015 Images
    muharram 2015 Hd Wallpapers
    Happy muharram 2015 Quotes
    Muharram 2015 Slogans
    muharram 2015 Karbala sms
    Muharram 2015 Quotes
    10 muharram 2015 Talwar Matam Videos
    Muharram 2015 Zanjeer Juloos Videos
    muharram 2015 Poems
    Hazrat Hussain Poetry 2015
    muharram 2015 Qawwali Mp3
    10 Muharram 2015 shayari
    Muharram 2015 Status
    Labbaik ya hussain mp3 Songs
    Hazrat Hussain Hd Images
    Happy Childrens Day 2015 Images
    Mastizaade Box Office Collection
    Mastizaade Funny Scenes
    Mastizaade hd Videos
    Mastizaade Hot Scenes
    Mastizaade Movie Review
    Mastizaade Romantic Scenes
    Mastizaade Songs
    Mastizaade trailer film
    World Aids Day 2015 Quotes
    World Aids Day 2015 Posters
    World Aids Day 2015 Themes
    World Aids Day 2015 Slogans

    Mary Brown said...

    Java EE article is practical oriented and real time examples. How Java EE address the enterprise development is very important. for that you need a practical orieneted Java Training you need.

    Online Java Training
    Online Java Training from India
    Java Training Institutes in Chennai
    Java Training in Chennai
    Java Training

    Anna said...

    Great Explanation with appropriate example.
    Online Java Training
    Online Java Training India

    Ranveer Patil said...

    This is great do you have a catologue if so I would love one to share with friends and family.
    IPL 2016 Auction Date Delhi Deredevils
    IPL 2016 Teams auction David Warner Glenn Maxwell
    IPL 9 Schedule released

    Jawad Zaib said...

    Your Site Is Very Good and The Post is Well On Topic, Thanks for Sharing it with us.

    New Filmi Songs 2016
    4 new elements are added to the periodic table
    latest entertainment news 2016
    Miley Cyrus and Chris Hamsworth
    spigen iphone 7
    Karachi Kings Highlights PSL 2016
    best urdu poetry 2016
    Latest Hindi Songs 2016
    copyright free music for youtube 2016

    asds said...

    mothers day images
    mother's day images
    mother's day Wallpaper
    mother's day Pictures
    mother's day Pics

    Happy mothers day images
    Happy mother's day images
    Happy mother's day Wallpaper
    Happy mother's day Pictures
    Happy mother's day Pics

    fathers day images
    fathers day wallpapers
    fathers day pictures
    fathers day pics

    Happy fathers day images
    Happy fathers day wallpapers
    Happy fathers day pictures
    Happy fathers day pics

    Ayushi Kumar said...

    book irctc tatkal tickets in 20sec
    irctc next grenration login system
    indian railway ticket booking online
    lic of india customers login

    Vikram Bala said...

    Fathers Day 2016
    Father’s Day Gifts Ideas
    Fathers Day 2016 Quotes
    Fathters Day Hindi Poems
    Father’s Day Screensavers

    Zheng junxai5 said...


    zhengjx20160804
    cheap rolex watches
    fit flops
    coach outlet
    oakley sunglasses
    cheap toms shoes
    louis vuitton purses
    louboutin sale clearance
    christian louboutin sale
    true religion outlet
    louboutin femme
    cheap basketball shoes
    louis vuitton bags
    polo shirts
    rolex watches outlet
    oakley outlet
    mont blanc pen
    michael kors outlet
    oakley sunglasses wholesale
    michael kors handbags
    kd 7 shoes
    michael kors outlet
    adidas nmd
    coach factory outlet online
    concords 11
    longchamp outlet
    louis vuitton outlet
    rolex watches for sale
    michael kors handbags
    coach outlet store online
    coach outlet online
    coach factory outlet online
    michael kors outlet
    cheap jerseys
    mont blanc pens outlet
    vans sneakers
    air jordan 4
    basketball shoes
    lebron 13
    cheap rolex watches
    lebron 13 shoes

    Hua Cai said...

    christian louboutin uk
    michael kors canada
    ugg boots sale
    hermes bags
    michael kors uk
    adidas nmd
    mbt shoes outlet
    louis vuitton neverfull sale
    football shirts
    michael kors outlet online
    ugg boots
    michael kors outlet
    longchamp outlet
    michael kors outlet clearance
    lululemon pants
    michael kors uk
    tiffany and co
    ugg boots
    lacoste polo shirts
    ugg australia
    true religion outlet
    iphone case
    omega outlet
    michael kors outlet
    mulberry handbags sale
    tiffany jewellery
    uggs outlet
    mulberry uk
    michael kors outlet
    mac cosmetics sale
    michael kors uk
    rolex watches outlet
    tiffany outlet
    michael kors handbags clearance
    ray ban sunglasses sale
    20160812caihuali

    Meiqing Xu said...

    ugg sale
    coach factory outlet
    longchamp outlet
    cheap mlb jerseys
    pandora jewelry
    ugg boots
    michael kors outlet
    christian louboutin outlet
    michael kors outlet online
    polo outlet
    20161208caiyan

    Thomas pedro said...

    Owning a getaway property based on a land near the mountains or the ocean are stuff dreams are made of for some. Be that as it may, the overcome ones discover the way to breath life into these fantasies. Auto Title Loans

    Unknown said...

    the north face jackets
    coach outlet clearance
    louis vuitton handbags
    adidas trainers
    cheap jordans
    michael kors handbags
    nba jerseys
    coach outlet online
    toms shoes
    oakley sunglasses
    chanyuan2017.01.7

    Thomas pedro said...

    The land buy advance contrast from other secured credits which is the reason you should do significantly more information social occasion or data examine before you apply for it. Arrive buy advances are for those individuals who need to buy a bundle of land either for business reason or for private reason. Payday Loans

    subash gautam said...

    cbse 10th result 2017
    up board result 2017
    cbse result 2017
    jee main result 2017
    icse result 2017
    SSC result 2017
    neet result 2017
    neet result 2017

    94 hằng said...

    You need to have time to take care of the active. It in fact was a amusement account it. Look advanced to far added agreeable from you.

    entrar hotmail agora , hotmail entrar, entrar hotmail , entrar no hotmail

    94 hằng said...

    Mostly people have all the same things when they are writing academic task or any other writing, especially light music most people like during the writing.

    subway surf , baixar subway surf, subway surf download , download subway surf

    94 hằng said...

    You need to have time to take care of the active. It in fact was a amusement account it. Look advanced to far added agreeable from you.
    banana kong ,
    banana kong baixar ,
    baixar banana kong ,
    download banana kong ,
    banana kong

    94 hằng said...

    facebook iniciar sesión , facebook, iniciar sesion , iniciar sesion facebook

    94 hằng said...

    Thanks I have read your article, it is very interesting and exciting
    download go launcher, go launcher apk, go launcher , go launcher androi,

    94 hằng said...

    Mostly people have all the same things when they are writing academic task or any other writing, especially light music most people like during the writing.
    dream league soccer download , dream league soccer apk , download dream league soccer , dream league soccer

    Thomas pedro said...

    Is it accurate to say that you are without a house or home? Is it accurate to say that you are discovering one however can't generally manage the cost of one? Is it true that you are losing trust? Try not to be, on account of with the expanding productivity and viability of the FHA house credits, you will never be destitute again. Car Title Loans Chicago