Tuesday, 13 April 2010

Java over-engineered?

The following gem, that belongs into a Java programming best practices book, was found in the source of Sun's JDK.




public class StubFactoryFactoryProxyImpl extends StubFactoryFactoryDynamicBase
{
public PresentationManager.StubFactory makeDynamicStubFactory(
PresentationManager pm, PresentationManager.ClassData classData,
ClassLoader classLoader )
{
return new StubFactoryProxyImpl( classData, classLoader ) ;
}
}


Well, I must confess this is almost better than the simple Hello World in Java [cached copy].

No comments:

Post a Comment