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.
  • 11 comments:

    爸爸 x said...

    20170619 junda
    oakley sunglasses sale
    cheap jerseys wholesale
    burberry outlet sale
    cheap ray ban sunglasses
    adidas uk store
    michael kors outlet clearance
    cheap nba jerseys
    true religion outlet
    ray ban sunglasses
    nike air max 90

    eric yao said...

    Coach Outlet ED Hardy Outlet Coach Outlet Store Online Kate Spade Outlet Cheap Jordans Coach Purses Coach Outlet Kate Spade Outlet Toms Outlet Louis Vuitton

    Habib Malik said...

    AP SSC Time Table 2018
    AP Intermediate Time Table 2018
    Goa SSC Date Sheet 2018
    Goa Board HSSC Date Sheet 2018

    DEMO said...

    IBPS RRB CWE VI Online Application Now available in online for more details about the posts check here

    Danish Ahmed said...

    Thanks for sharing this article, now you can also check your Admit card & Recuritment 2017 by following below given links...

    police si admit card 2017

    gpsc medical officer admit card 2017

    tamilnadu teacher recuritment 2017

    bihar police constable recuritment 2017

    gujarat high court recruitment 2017

    Farhan Khan said...

    FCI Watchman

    Admit Card 2017

    CG SET Admit Card

    2017

    MP Patwari

    Admit Card 2017

    JEE Main 2018

    Application Form

    PNRD Assam

    REcruitment 2017

    Danish Ahmed said...

    Thanks for sharing this article, now you can also check your Recuritment & Notification 2017-2018 by following below given links...

    fci andhra pradesh watchman recuritment 2017

    fci tamilnadu watchman recuritment 2017

    xat notification 2018

    jkbote polytechnic result 2017

    Habib Malik said...

    Kalyani University Routine 2018
    Tripura Board Madhyamim Date Sheet 2018
    Tripura Board HS Date Sheet 2018
    Telangana SSC Date Sheet 2018
    Telanagana Intermediate Date Sheet 2018

    adidas nmd said...

    nhl jerseys
    cheap ray bans
    oakley sunglasses wholesale
    ralph lauren polo
    fitflops sale clearance
    nike blazer pas cher
    christian louboutin shoes
    cheap ray ban sunglasses
    oakley sunglasses
    nike outlet

    Habib Malik said...

    GSAT Application Form 2018
    HP Application Form 2018
    Karnataka DCET Application Form 2018
    RIE EEE Application Form 2018
    SSC CGL Application Form 2018

    suster pk said...

    This blog is so nice to me. I will continue to come here again and again. Visit my link as well. Good luck
    cara menggugurkan kandungan