Helping ordinary people create extraordinary websites!
GET OUR NEWSLETTER
Your Email:
 

Java Validation With Dynamic Proxies

By Eric Olson
2005-05-14


Resources

• Click on the Code icon at the top or bottom of this article to download the source code used in this article.

• John Zukowski shows you another use for dynamic proxies, with his column on " Dynamic event listener proxies" ( developerWorks, October 2003).

• Brett McLaughlin's " The fine points of data validation" ( developerWorks , December 2002) explains how to get the best performance out of your validation code.

• Whereas this article focused on business-specific validation, Brett's column on " Validation helper classes" ( developerWorks, January 2003) shows you how to avoid code redundancy in data-format validation.

• Learn about using the JavaBeans constrained properties facility for validation, with Victor Okunev's " Validation with pure Java" ( JavaWorld , December 2000).

• On the flipside of the coin, Brett McLaughlin's " Validation with Java and XML Schema" ( JavaWorld, September 2000) explains why Java code isn't a complete solution for data validation.

• Dennis Sosnoski's " Data binding, Part 1: Code generation approaches -- JAXB and more" ( developerWorks , January 2003) is a survey of XML data binding frameworks that support Java language code generation.

• Visit Sun Microsystems's Dynamic Proxy API home page to learn more about dynamic proxies.

• You'll find articles about every aspect of Java programming in the developerWorks Java technology zone.

• Also see the Java technology zone tutorials page for a complete Listing of free Java-focused tutorials from developerWorks.

• Visit the Developer Bookstore for a comprehensive Listing of technical books, including hundreds of Java-related titles.

• Interested in test driving IBM products without the typical high-cost entry point or short-term evaluation license? The developerWorks Subscription provides a low-cost, 12-month, single-user license for WebSphere®, DB2®, Lotus®, Rational®, and Tivoli® products -- including the Eclipse-based WebSphere Studio IDE -- to develop, test, evaluate, and demonstrate your applications.

Tutorial Pages:
» Decouple validation processes from your business object implementations
» Tightly coupled validation
» Loosely coupled validation
» The dynamic proxy approach
» The invocation handler
» The business object implementation
» The business object factory
» Drawbacks of dynamic proxies
» Other uses for dynamic proxies
» Conclusion
» Resources


First published by

Related Tutorials:
» All about JAXP, Part 1
» Make Database Queries Without the Database
» Load List Values for Improved Efficiency
» 2 Ways To Implement Session Tracking
» A Simple Way to Read an XML File in Java
» Develop Aspect-Oriented Java Applications with Eclipse and AJDT

Advertise with Us!


Tutorials Scripts Web Hosting Developer Manuals
Resources