Skip to main content
View by: Most Recent | Topic | Community | Webloggers   
Monthly Archives:    

Blogs by topic Programming and user mason

• Accessibility • Ajax • Blogging • Business • Community 
• Databases • Deployment • Distributed • Eclipse • Education 
• EJB • Extreme Programming • Games • GlassFish • Grid 
• GUI • IDE • Instant Messaging • J2EE • J2ME 
• J2SE • Jakarta • JavaFX • JavaOne • Jini 
• JSP • JSR • JXTA • LDAP • Linux 
• Mobility • NetBeans • Open Source • OpenSolaris • OSGi 
• P2P • Patterns • Performance • Porting • Programming 
• Research • RMI • RSS Feeds • Search • Security 
• Servlets • Struts • Swing • Testing • Tools 
• Virtual Machine • Web Applications • Web Design • Web Development Tools • Web Services and XML 


1) I often find myself writing factory type interfaces, but one of the problems with interfaces in Java is that, while you can include static variables, there isn't any way to include static methods. This means if you want your getInstance and setInstance methods inside the factory interface itself, you either have to resort to using a static variable or you have to create a second class just to...
on Nov 1, 2006
Code block, in a nutshell, are basically just "lambda" functions (also known as closures in many other languages, most apropos might be Groovy) that are tied directly to a single method call. The canonical case is the way Ruby does array iterators: [1, 2, 3].each { |i| puts "the value is #{i}" } In this case the code block "{ |i| ... }" is passed to the method "each". This method calls...
on Sep 8, 2006
Object pooling in Java is generally a bad idea for many reasons, not the least of which it has the nasty ability to actually cause the very performance problems you are trying to solve on modern JVMs, but there are always cases where the resources available to your application are in such limited supply that you really don't have a choice in the matter. Instances are rare, but in some cases you...
on Oct 3, 2004