Writing Mixins using AspectJ 15 Dec 2005 05:00 GMTDespite their potential for adding common functionality across unrelated classes, mixins aren't directly supported by the Java language. But by using an aspect-oriented programming approach, you can bring mixins to Java. Mohan Radhakrishnan shows how to do this with AspectJ.
Source: Java.net Variable Arity Methods 14 Dec 2005 11:42 GMTVariable arity methods, sometimes referred to as varargs methods, accept an arbitrary set of arguments. JDK 5.0 adds a varargs facility that's a lot more flexible than before. Learn more in this Tech Tip.
Source: Sun Using AJAX with Java Technology 14 Dec 2005 11:42 GMTAJAX is a hot topic in the Java community. Learn why and see it in use with Java technology to implement an autocomplete feature on a web page.
Source: Sun Hibernate Class Generation Using hbm2java 14 Dec 2005 05:00 GMTHibernate uses mapping files to express the mapping of Java classes to database tables. In a complex project, keeping mappings in sync with your Java code can be burdensome and error-prone. Fortunately, the
hbm2java tool can automate this by generating POJO classes from the mapping files. John Ferguson Smart shows how to use
hbm2java with Ant and Maven, and how to customize the behavior of the generated classes.
Source: O'Reilly Log4Ajax 13 Dec 2005 05:00 GMTAJAX developers, like all client-side JavaScripters, know that
alert is their friend at development time, but as a logging tool, it's severely limited. Eric Spiegelberg offers more robust ideas for logging on the client side and logging from the client to the server.
Source: Java.net Java Tech: Image Embossing 08 Dec 2005 05:00 GMTMany GUIs use an "embossing" effect to create the illusion of depth, manipulating pixel colors to suggest small ridges and valleys. In this installment of "Java Tech," Jeff Friesen introduces an algorithm to perform the embossing effect, and shows how easy it is to implement with Swing and Java2D.
Source: Java.net Create a Java TOC2 Class to Communicate with AIM 07 Dec 2005 23:43 GMTInstant messaging is more than a great way to keep in touch: It's a full-fledged business tool and there are plenty of reasons that you might be interested in extending your favorite IM service into a custom chat application. But if you choose AIM, you'll need to be armed with some detailed information about its brand new protocol.
Source: DevX