Jun 17

来自TSS上的消息: Java Standard Edition 6 has formally gone to beta status today, downloadable from Sun. The beta includes the new scripting framework, the JAX-WS client stack (with JAXB), greatly enhanced diagnostics (especially if you're running on Solaris 10), desktop enhancements, and a number of other changes. Sun expects JSE 6 to be finalized in August 2006. The scripting framework is currently only the framework. While a script language (such as JavaScript) may be bundled eventually, the goal for JSE6 is to...

[more..]

Jun 17

来自TSS上的消息: Sun has announced it is joining the OpenAJAX Alliance and the Dojo Foundation. Sun says it will actively participate in these two communities to help drive open standards for AJAX programming and increase interoperability across AJAX technologies. As part of the OpenAJAX Alliance, Sun will collaborate with over 30 other member companies and organizations to identify and consolidate best practices, reach a consensus on programming models around a reference implementation for tools interoperability and...

[more..]

Jun 14
Templates based mailers Let's define an interface for mailers based on a template engine (such as Velocity and FreeMarker). import java.util.Map; import java.util.List; public interface TemplateMailer { /** * Send a mail with both a text and a HTML version. * @param email the email address where to send the email * @param context a {@link Map} of objects to expose to the template engine * @param templatePrefix the prefix of the templates to use */ void mail(...

[more..]

May 30
package  com.javaeye.common.hibernate; import  java.lang.reflect.Field; import  java.sql.SQLException; import  java.util.ArrayList; import  java.util.List; import  java.util.regex.Matcher; import  java.util.regex.Pattern; import  org.apache.commons.lang.StringUtils; import  org.apache.commons.logging.Log; import  org.apache.commons.logging.LogFactory; import  org.hibernate.Criteria; import  org.hibernate.HibernateExcepti...

[more..]

Mar 29

[more..]

Mar 23

[more..]

Mar 16

[more..]