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

    Unknown 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

    Unknown 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

    Dharani M said...

    Nice post
    java training in Marathahalli

    spring training in Marathahalli

    java training institute in Marathahalli

    spring and hibernate training in Marathahalli

    mounika said...

    Nice post..

    DOT NET training in btm

    dot net training institute in btm

    dot net course in btm

    best dot net training institute in btm

    Eillen Sharma said...

    Call Girls in Gurgaon
    Call Girls in Gurgaon

    Call Girls in Kolkata
    Call Girls in Bangalore
    Call Girls in Mumbai

    rithisaiaanand said...
    This comment has been removed by the author.
    rithisaiaanand said...

    It is amazing and wonderful to visit your site. Thanks for sharing this information, this is useful to me...Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.
    Thanks for splitting your comprehension with us.
    Sql server dba online training

    gowsalya said...

    I appreciate that you produced this wonderful article to help us get more knowledge about this topic. I know, it is not an easy task to write such a big article in one day, I've tried that and I've failed. But, here you are, trying the big task and finishing it off and getting good comments and ratings. That is one hell of a job done!
    msbi online training

    Kiruthiprabha said...

    Thanks you for sharing this unique useful information content with us. Really awesome work. keep on blogging..
    https://www.gangboard.com/database-training/oracle-dba-training?utm_source=backlinks&utm_medium=cmt&utm_campaign=coursepage&utm_term=oracledba&utm_content=kiruthika

    Darren Demers said...

    Faisalabad Fabric Store the name where you can buy Ladies Velvet Designer Suits either in Casual wear or in Party Wear. Faisalabadfabricstore.com has propelled its designer velvet designs replica collection in this season. Having the latest designs of different brands like Khaadi, Sana Safinaz, Asim Jofa, Maria B, Ethnic, Tena Durrani and some more you can find a lot of designs and styles in a single place.
    velvet clothing , velvet outfit , red velvet outfits

    Darren Demers said...

    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. wholesale shawls , wholesale pashmina , pashmina shawl wholesale , pashminas in bulk , wholesale scarves in bulk , wholesale scarf suppliers , chiffon scarves wholesale , wholesale prayer shawls , velvet shawls wholesale , velvet shawl

    priya said...


    The hectic world, a usual silhouette of wrinkled-faces and lack of time & good people make absolute absence of Love in our lives. Only a smile means to exist in the whole world bringing itself a Comet of Love. So it takes you believe onRussian Escorts in Gurgaon liable to fulfill your lives with real sense of love. Check our other Services...
    Escorts Service in Gurgaon
    Female Escorts in Gurgaon
    Russian Escorts in Gurgaon
    Russian Escorts in Gurgaon
    Escorts Service in Gurgaon



    Vidhu Dev said...
    This comment has been removed by the author.
    Vidhu Dev said...

    Nice content and blog...Thanks for sharing, Waiting for next...
    Wordpress Training in Chennai
    Wordpress course in Chennai
    Struts Training in Chennai
    Spring Training in Chennai
    Spring framework Training in Chennai
    Struts course in Chennai

    Vidhu Dev said...
    This comment has been removed by the author.
    Jithinrao said...

    valuable blog,Informative content...thanks for sharing, Waiting for the next update...
    google analytics training in chennai
    google analytics course certification
    google analytics certification
    google analytics course
    oet coaching centre in chennai
    Social Media Marketing Courses in Chennai

    pkv games said...

    mainkan judi slot online disini untuk hasilkan uang hingga jutaan rupiah yang bisa membantu perekonomian anda. mainkan bisa dimana aja, kunjungi https://www.jackpot168slot.com

    HOT AND SEXY INDEPENDENT ESCORTS IN LUCKNOW said...

    THANK YOU FOR VISITING MY WEBSITE:-
    russian escorts in gurgaon
    housewife escorts in gurgaon
    gurgaon escort services
    gurgaon escorts
    escorts in gurgaon
    escort services in gurgaon
    gurgaon call girls
    call girls in gurgaon

    Ms Nikita Agarwal said...

    Very Good way of attracting your reader's attention is to write blog like you. Please do contact me on genuinehotelescorts@gmail.com for
    Jaipur call girls
    Jaipur call girls
    Jaipur call girls
    Delhi call girls
    Guwahati call girls
    Guwahati call girls
    Guwahati call girls
    Guwahati call girls
    Aerocity call girls
    Lucknow call girls

    Anonymous said...

    Bellary Escorts
    Chennai Escorts

    Coimbatore Escorts
    Delhi Escorts
    Dhanbad Escorts
    Dharwad Escorts
    Gaya Escorts
    Gurgaon Escorts

    Jammu Escorts
    Pathankot Escorts

    Anonymous said...


    Kanpur Escorts
    Mumbai Escorts
    Navi Mumbai Escorts
    Noida Escorts
    Pune Escorts
    Ramagundam Escorts

    Thane Escorts
    Vasai-Virar Escorts
    Ahmedabad Escorts
    Bangalore Escorts

    Anonymous said...

    Udaipur Escorts
    Ulhasnagar Escorts
    Vadodara Escorts
    Varanasi Escorts

    Vijayawada Escorts
    Visakhapatnam Escorts
    Warangal Escorts
    Vapi Escorts
    Ujjain Escorts
    Agartala Escorts

    Anonymous said...

    Shillong Escorts
    Shimla Escorts

    Siliguri Escorts
    Silvassa Escorts
    Solapur Escorts
    South Dumdum Escorts
    Sri Ganganagar Escorts
    Srinagar Escorts

    Surat Escorts
    Trivandrum Escorts

    Anonymous said...


    Pimpri-Chinchwad Escorts
    Port Blair Escorts
    Raipur Escorts
    Rajahmundry Escorts
    Rajkot Escorts
    Ranchi Escorts

    Rourkela Escorts
    Saharanpur Escorts
    Salem Escorts
    Sangli Escorts

    Anonymous said...

    Mangalore Escorts
    Meerut Escorts
    Mysore Escorts
    Nagpur Escorts

    Nanded Escorts
    Nashik Escorts
    Nellore Escorts
    Kolkata Escorts
    Panaji Escorts
    Patiala Escorts

    Anonymous said...

    Kochi Escorts
    Kolhapur Escorts

    Kozhikode Escorts
    Kurnool Escorts
    Loni Escorts
    Lucknow Escorts
    Ludhiana Escorts
    Madurai Escorts

    Maheshtala Escorts
    Malegaon Escorts

    Anonymous said...

    Hyderabad Escorts
    Indore Escorts
    Itanagar Escorts
    Jabalpur Escorts
    Jaipur Escorts
    Jalandhar Escorts

    Jhansi Escorts
    Jodhpur Escorts
    Kakinada Escorts
    Kalyan-Dombivali Escorts

    Anonymous said...

    Erode Escorts
    Faridabad Escorts
    Gangtok Escorts
    Gorakhpur Escorts

    Gulbarga Escorts
    Guntur Escorts
    Guwahati Escorts
    Gwalior Escorts
    Howrah Escorts
    Hubli Escorts

    Anonymous said...

    Bhiwandi Escorts
    Bhopal Escorts

    Bhubaneswar Escorts
    Bikaner Escorts
    Bokaro Escorts
    Chandigarh Escorts
    Cuttack Escorts
    Daman Escorts

    Dehradun Escorts
    Durgapur Escorts

    Anonymous said...

    Agra Escorts
    Akola Escorts
    Aligarh Escorts
    Allahabad Escorts
    Amravati Escorts
    Amritsar Escorts

    Bareilly Escorts
    Belgaum Escorts
    Bhavnagar Escorts
    Bhilai Escorts

    Darren Demers said...

    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. whole pakistani fabric dealer for Pakistani suiting , wholesale pakistani designer suits , Top asian clothing Source from Pakistan

    ncrhotgirls.com said...

    I appreciate your efforts in writing such a wonderful post...Thanks for sharing...Please check my links for
    Call girl services in Jaipur
    Call girl services in Jaipur
    Call girl services in Jaipur
    Call girl services in Delhi
    Call girl services in Guwahati
    Call girl services in Guwahati
    Call girl services in Guwahati
    Call girl services in Guwahati
    Call girl services in Aerocity
    Call girl services in Lucknow

    doyan303 said...

    masih bingung mencari judi online dengan slot online yang bnyak ke untungan nya
    hanya ada di doyan303 mari langsung aja bermain di https://206.189.94.79

    Diyanka Call Girls said...

    A very Good way of attracting your reader's attention is to write a blog like you.
    Call Girls in Munirka
    Tilak Nagar Call Girls
    Lajpat Nagar Escorts
    Escorts in Safdarjung
    Vikas Puri Escorts Service

    diyaroy.com said...

    Diya Roy is a premier escort agency in Guwahati that provides call girl services or
    escort services in Guwahati hotels at cheap and affordable fixed rates
    Assamese call girls in Guwahati
    College call girls in Guwahati
    Housewife escorts in Guwahati
    Russian escorts in Guwahati
    Model escorts in Guwahati
    Nepali call girls in Guwahati
    High profile call girls in Guwahati
    VIP escorts in Guwahati
    Female escorts in Guwahati

    nituroy.com said...

    Hello, This is a Nitu roy very interesting blog. this content is written very
    well This is an amazing post, keep blogging.
    Guwahati Escorts
    Guwahati escort service

    guwahaticallgirl.com said...

    We serve our Guwahati escort service in the whole Guwahati city Our services are at
    the top when it comes to Escort Service in guwahati. We have the
    best call girl in guwahati to satisfy.
    Escorts in Guwahati
    Guwahati Escorts

    dialescorts.com said...

    You can book call girl in Guwahati or escort Service in Guwahati for incall facility or
    outcall Facility as and when required.To book Guwahati call girls you
    can visit the following links
    Escort Service in Guwahati
    Call Girl Service in Guwahati

    yanmaneee said...

    yeezy shoes
    supreme shirt
    kyrie spongebob
    moncler outlet
    golden goose outlet
    golden goose
    golden goose
    off-white
    yeezy 700
    supreme clothing

    Escorts Service Kolkata said...

    escorts service in kolkata |
    escorts service in kolkata |
    escorts service in kolkata |
    escorts service in kolkata |
    escorts service in kolkata |