*/
package org.wamblee.system.components;
-import org.wamblee.persistence.DerbyDatabase;
+import org.wamblee.support.persistence.DatabaseBuilder;
import org.wamblee.system.container.Container;
public class DatabaseComponentFactory {
public static void addDatabaseConfig(Container aContainer) {
try {
- /*
- aContainer
- .addComponent(new PropertyComponent(
- "dbProps",
- new ClassPathResource(
- "properties/test.org.wamblee.security.database.properties")));
- */
aContainer.addComponent(new DatabaseComponent("db",
- new DerbyDatabase()));
+ DatabaseBuilder.getDatabase()));
} catch (Exception e) {
throw new RuntimeException("Could not add database configuration",
e);