Hi, I have an existing JAVA code that uses Class.forName for loading and creating new instance. I want to load a compile FAN class using this method. Is this possible?
Thanks in advance!
brianTue 20 Jan 2009
See previous post. Assuming you precompiled Fan into a Jar and got it into your classpath, then Fan classes would look just like normal Java classes, and Class.forName() would work - for example Fan classes are mapped to Java packages as fan.podName.TypeName.
Although the meta-programming, reflection, and serialization on the Fan side is way more powerful than the Java side if you can use it.
cjbaldoza Tue 20 Jan 2009
Hi, I have an existing JAVA code that uses Class.forName for loading and creating new instance. I want to load a compile FAN class using this method. Is this possible?
Thanks in advance!
brian Tue 20 Jan 2009
See previous post. Assuming you precompiled Fan into a Jar and got it into your classpath, then Fan classes would look just like normal Java classes, and Class.forName() would work - for example Fan classes are mapped to Java packages as
fan.podName.TypeName
.Although the meta-programming, reflection, and serialization on the Fan side is way more powerful than the Java side if you can use it.