I believe (without direct knowledge):

-This class is a side-effect of moving to different transports.
-There is a way to use directly the xmlrpc or embed driver

This class exists for backwards compatibility, to remove the requirement
to specify the xmlrpc driver explicitly.

Your probably right about the reflected construction, not sure why it
does the class.forName.  I'll take a look.

-Kevin 

-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Kevin O'Neill
Sent: Monday, July 07, 2003 2:23 AM
To: [EMAIL PROTECTED]
Subject: Class.forName ?

org.apache.xindice.client.xmldb.DatabaseImpl uses class for name to load
classes that seem local to the package.

As Class is in the system classloader, if xindice is not loaded by the
system class loader then the driver classes may not be visable.
getClass().getClassLoader().loadClass( "foo" ); would be safer.

There is no way for the user to change what classes are used so why
aren't the instances just constructed (am I missing something?)?

-k.

Reply via email to