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