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.
  • 39 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

    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

    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...

    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

    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...

    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

    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

    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

    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 |

    phynel said...

    s7x73y2j09 f5m28x5u10 b7g42h1o89 t5u26l0d56 f0o45o7q61 i2j10o6l77

    DR P.K Gupta said...

    Much gratefulness to assessments of this basic blog. I regard your work, and now I will peruse a general bit of your blog. Sexologist Doctor in Delhi | Dr PK Gupta Sexologist Doctor in Delhi | Sexologist in Delhi | Dr P K Gupta | Best Sexologist in Delhi.
    This is an amazing moving article. I am all around that truly matters content with your animal's work.
    How Can Yoga Benefit Your Sexual Life

    Best Five Ways to Have a Healthier Relationship Life

    DR PK Gupta is the Best Sexologist In Delhi