com.im.commons.db 5.9.2

com.im.commons.db
Class DatabaseContext

java.lang.Object
  extended by com.im.commons.db.DatabaseContext

public class DatabaseContext
extends Object


Constructor Summary
DatabaseContext()
           
 
Method Summary
static ApplicationContext getTempDataSourceFactoryContext()
          Utility to get temporary application context with only one goal - to obtain DataSourceFactories.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseContext

public DatabaseContext()
Method Detail

getTempDataSourceFactoryContext

public static ApplicationContext getTempDataSourceFactoryContext()
Utility to get temporary application context with only one goal - to obtain DataSourceFactories. Only reason to have this, is to hack the fact that NewSchemaWizardIterator and DatabasePlatform needs DataSources before actual ApplicationContext is created.
In fact, this is just replacement of the NetBeans Lookup, that we don't want on server.
Proper fix would be to change its occurrences to require DataSource AFTER application context was created, but it is far beyond my actual mental abilities to refactor that code.

Returns:
The application context containing registered DataSourceFactories

com.im.commons.db 5.9.2