package org.wamblee.system.components;
import org.wamblee.io.ClassPathResource;
-import org.wamblee.system.core.Container;
+import org.wamblee.persistence.DerbyDatabase;
+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()));
} catch (Exception e) {
throw new RuntimeException("Could not add database configuration",
e);