This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
org.netbeans.modules.db.runtime.DatabaseRuntimeManager.register() is an API that allows pluging of DB runtimes. Unfortunatelly is it too eager contract and does not allow lazy initialization and thus forces loading of too many classes and performing of useless work during startup if there is any module using this API
Radime, could you please elaborate on this? What is the flaw? Is it that the registration must be done by each module in a ModuleInstall.restored() method? What would be the right way to make this lazy? What about registering the DatabaseRuntimes in the default lookup and retrieving them only when they are needed (i.e., when a db connection is made)?
Yes, the need for ModuleInstall.restored is bad. It is called even if the user has no intent to do anything related to DB. Registering through lookup is OK IMO.
Fixed by the new Database Explorer API developer under issue #61439.
VERIFIED