git://wamblee.org
/
utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added explicit linking of required to externally required interfaces.
[utils]
/
system
/
general
/
src
/
test
/
java
/
org
/
wamblee
/
system
/
components
/
DatabaseComponentFactory.java
diff --git
a/system/general/src/test/java/org/wamblee/system/components/DatabaseComponentFactory.java
b/system/general/src/test/java/org/wamblee/system/components/DatabaseComponentFactory.java
index c6ddeee12d086d2640b0c61123e24efe28502afd..522b14b823542138c0af368963a77d4e627c3d16 100644
(file)
--- a/
system/general/src/test/java/org/wamblee/system/components/DatabaseComponentFactory.java
+++ b/
system/general/src/test/java/org/wamblee/system/components/DatabaseComponentFactory.java
@@
-16,17
+16,22
@@
package org.wamblee.system.components;
import org.wamblee.io.ClassPathResource;
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 {
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 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);
} catch (Exception e) {
throw new RuntimeException("Could not add database configuration",
e);