Brian's Waste of Time

Wed, 12 May 2004

ASM 1.4.3 and CocoonClassLoader...

ASM is cool. I don't know about its feature for support XSLT transformations of Java bytecode though. What's next? I can foresee a Cocoon based remote classloader which dynamically generates a Java class from a directory containing mp3's. It'll have a getter for each song =)

ClassLoader musicLoader = new RemoteCocoonClassLoader("http://www.example.com/MyMusic/");
Thread.currentThread().setContextClassLoader(musicLoader);
Object music = Class.forName("com.example.www.MyMusic").newInstance();
Song song = BeanUtils.getProperty("Chan Chan", music);
song.play();

=)

0 writebacks [/src/java] permanent link