[hibernate-issues] [Hibernate-JIRA] Commented: (HSHARDS-2) Use the overloaded version of Class.forName() to prevent loading of unnecessary classes
Max Ross (JIRA)
noreply at atlassian.com
Wed Mar 21 00:40:09 EDT 2007
[ http://opensource.atlassian.com/projects/hibernate/browse/HSHARDS-2?page=comments#action_26492 ]
Max Ross commented on HSHARDS-2:
--------------------------------
Turns out the call to forName in HSQLDatabasePlatform.HSQLDatabasePlatform() is unnecessary because the same thing is invoked in the base class constructor. However, I'm not sure what you're suggesting I do with the overloaded version of Class.forName(). Are you suggesting I use a different ClassLoader? If so, why? I need to pass 'true' to the second param because I really need the class to be loaded.
Thanks,
Max
> Use the overloaded version of Class.forName() to prevent loading of unnecessary classes
> ---------------------------------------------------------------------------------------
>
> Key: HSHARDS-2
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HSHARDS-2
> Project: Hibernate Shards
> Type: Improvement
> Components: engine
> Reporter: Diego Pires Plentz
> Assignee: Max Ross
>
>
> Use the http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html#forName(java.lang.String,%20boolean,%20java.lang.ClassLoader) overloaded version of Class.forName() which prevents loading of lots of classes.
> org.hibernate.shards.integration.platform.hsql.HSQLDatabasePlatform.HSQLDatabasePlatform()
> org.hibernate.shards.integration.platform.BaseDatabasePlatform.BaseDatabasePlatform()
> org.hibernate.shards.integration.platform.DatabasePlatformFactory.FACTORY.getDatabasePlatform()
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list