Thursday, November 30, 2006

 

Switching to generics, TestNG, and XMLTask

O'REILLY NETWORK'S ONJava.com NEWSLETTER
--------------------------------------------------
The Independent Source for Enterprise Java

==================================================================
Sponsored by db4objects

db4o is the open source object database, native to Java, which slashes
development time and achieves unprecedented levels of performance--up to
55x faster than Hibernate. Test-drive the NEW RELEASE db4o V6.0 today!

http://www.db4o.com/s/javadb.aspx?src=Onjava

==================================================================

Greetings...

When consulting with the authors and editor of "Java Generics and
Collections" for material to excerpt for ONJava, I originally thought we'd
probably end up running some introductory material, in the interests of
finding something that could stand by itself as a website article and not
require a lot of information from the rest of the book. However, their
response was to push farther into the book and excerpt Chapter 5, which
deals with converting existing applications to use Java 5.0's generics.

This turned out to be a great choice, because this topic is not usually
considered in introductory material on generics. If you get to work with a
new project, you can and probably will use generics (unless you're using
and older version of Java or are not planning on using the Collections
framework), and that's great. But it's a lot more likely you already have
an existing code base and that converting the whole thing to use generics
in one fell swoop, even off on a branch, is impractical. This is what
Chapter 5 deals with, showing you how to gradually introduce generics on
one or both sides of your method calls.

The entire chapter is presented in the form of excerpts over the last two
weeks. If you're interested, do check out the rest of the book, either on
paper or via Safari Books Online.

http://www.onjava.com/pub/a/onjava/excerpt/javagenerics_chap05/index.html
http://www.oreillynet.com/pub/a/excerpt/javagenerics_chap05/index1.html

Need to automate your code testing? Most Java developers already know
about JUnit, but maybe you should check out TestNG, which offers a host of
useful features like test categorization and parametric testing, and can
be run via Java 5.0 annotations. Andy Glover has an introduction to some
of these strengths in the dev2dev article "Test Categorization Techniques
with TestNG."

http://dev2dev.bea.com/pub/a/2006/09/testng-categorization.html

In this week's feature article from java.net, Brian Agnew introduces "XML
Manipulation using XMLTask." "XMLTask is an external task for the popular
build tool Ant that permits complex manipulations of XML in a simple and
consistent fashion, without having to deal with XSL. XMLTask can be used
for many common tasks that developers face, including manipulating J2EE
and Spring descriptors, creating XHTML websites, and driving workflows via
XML configuration files."

http://today.java.net/pub/a/today/2006/11/01/xml-manipulation-using-xmltask.html

Recent O'Reilly Network weblogs of interest to Java developers:

Robert Cooper - Netbeans Ruby
http://www.oreillynet.com/onjava/blog/2006/11/netbeans_rubuy.html

Robert Cooper - Web 2.0 meet Tilde
http://www.oreillynet.com/onjava/blog/2006/11/web_20_meet_tilde.html

Jim Farley - Forget the iPhone - I want "MacOS Mobile"
http://www.oreillynet.com/onjava/blog/2006/11/the_time_is_ripe_for_macos_mob.html

Paul Browne - Open Java changes Everything
http://www.oreillynet.com/onjava/blog/2006/11/open_java_changes_everything.html

Robert Cooper - GWT Maven Plugin 1.0.3 Available.
http://www.oreillynet.com/onjava/blog/2006/11/gwt_maven_plugin_103_available.html

Robert Cooper - Thoughts on Data Binding and Swing
http://www.oreillynet.com/onjava/blog/2006/11/thoughts_on_data_binding_and_s.html

Robert Cooper - Microsoft's Non-Compete API License
http://www.oreillynet.com/onjava/blog/2006/11/microsofts_noncompete_api_lice.html

Timothy M. O'Brien - RE: Playing with XFire
http://www.oreillynet.com/onjava/blog/2006/11/re_playing_with_xfire.html

Robert Cooper - Rails in Glassfish
http://www.oreillynet.com/onjava/blog/2006/11/rails_in_glassfish.html

Dejan Bosanac - Playing with XFire
http://www.oreillynet.com/onjava/blog/2006/11/playing_with_xfire.html

Robert Cooper - GWT 1.2... final... beta... released
http://www.oreillynet.com/onjava/blog/2006/11/gwt_12_final_beta_released.html

Check out more O'Reilly Network Java weblogs at:
http://www.oreillynet.com/onjava/blog/

Please join us again next week.

Chris Adamson, Editor
ONJava.com
cadamson@oreilly.com

==================================================================
Register for ETel by January 8th and save!

Registration is now open for the 2007 Emerging Telephony Conference.
Explore the strategies for taming disruption and exploit opportunities
being created by web telephony innovations.

Register by January 8th and save!
http://conferences.oreillynet.com/pub/w/50/register.html

==================================================================

*** Java News and Weblogs ***

java.net Weblogs
http://weblogs.java.net/

O'Reilly Network Java Weblogs
http://www.oreillynet.com/pub/q/weblog_s?x-subject=3

Other Java News (channel -- LANG: JAVA)
http://www.oreillynet.com/meerkat/index.php

Java Cookbook Recipe of the Day
http://www.onjava.com/onjava/javacook/solution.csp?day=1

Java Events
http://www.onjava.com/onjava/events/

==================================================================
Learn by Doing and Save $300

"I studied on my own and in classroom based courses, but never before have
I learned so much in such a short time: Learning by doing does make a
difference!" -Sandro Cipolat

Enroll today in O'Reilly Learning's System Administration Certificate
Series and save $300!

https://oreillylearning.com/promotion/

==================================================================

*** Other Related O'Reilly Network sites ***

O'Reilly Network
http://www.oreillynet.com

XML.com
http://xml.com/

ONLamp.com
http://onlamp.com

O'Reilly Media
http://www.oreilly.com/

O'Reilly Java
http://java.oreilly.com/

***

ONJava.com Affiliates

Servlets.com
http://www.servlets.com/

JDOM.org
http://www.jdom.org/

------------------------------------------------------------------
Visit our Sponsored Developer Resource Pages and learn about cool
stuff from our sponsors!

Downloads - Free Training - Webinars - Updates

Driver Agents Driver Updates: http://www.oreilly.com/go/driver_updates
Inside Lightroom: http://digitalmedia.oreilly.com/lightroom/

------------------------------------------------------------------
Interested in sponsoring the ONJava.com newsletter? Please email us
at advertising@oreilly.com for rate and availability information.
Thank you!
------------------------------------------------------------------
To change your newsletter subscription options, please visit
http://www.oreillynet.com/cs/nl/home

For assistance, email help@oreillynet.com

O'Reilly Media, Inc.
1005 Gravenstein Highway North
Sebastopol, CA 95472
(707) 827-7000
------------------------------------------------------------------


Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?