com.im.commons.db
Class DatabaseContext
java.lang.Object
com.im.commons.db.DatabaseContext
public class DatabaseContext
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DatabaseContext
public DatabaseContext()
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