X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=system%2Fgeneral%2Fsrc%2Ftest%2Fjava%2Forg%2Fwamblee%2Fsystem%2Fcomponents%2FDatabaseComponent.java;h=1abaf1772b8ac6e347f3186798fcbb84effaebba;hb=8de36ff0206c996baf3ee4adc3e2293b12ff5f39;hp=e903b9de992735998d51cd3490d44d3a5b16a2e1;hpb=89c06d4d52b46c154128c97d6e758fa1f4fc7a6e;p=utils diff --git a/system/general/src/test/java/org/wamblee/system/components/DatabaseComponent.java b/system/general/src/test/java/org/wamblee/system/components/DatabaseComponent.java index e903b9de..1abaf177 100644 --- a/system/general/src/test/java/org/wamblee/system/components/DatabaseComponent.java +++ b/system/general/src/test/java/org/wamblee/system/components/DatabaseComponent.java @@ -26,30 +26,20 @@ import org.wamblee.system.core.Scope; import java.util.Properties; - /** - * DOCUMENT ME! - * + * * @author $author$ * @version $Revision$ - */ + */ public class DatabaseComponent extends AbstractComponent { - /** - * DOCUMENT ME! - */ - private static ProvidedInterface DB_PROPS = new DefaultProvidedInterface("dbProps", - Properties.class); + private static ProvidedInterface DB_PROPS = new DefaultProvidedInterface( + "dbProps", Properties.class); - /** - * DOCUMENT ME! - */ private Database database; /** * Creates a new DatabaseComponent object. - * - * @param aName DOCUMENT ME! - * @param aDatabase DOCUMENT ME! + * */ public DatabaseComponent(String aName, Database aDatabase) { super(aName); @@ -57,13 +47,6 @@ public class DatabaseComponent extends AbstractComponent { addProvidedInterface(DB_PROPS); } - /** - * DOCUMENT ME! - * - * @param aScope DOCUMENT ME! - * - * @return DOCUMENT ME! - */ @Override protected Database doStart(Scope aScope) { database.start(); @@ -73,11 +56,11 @@ public class DatabaseComponent extends AbstractComponent { if (database instanceof DerbyDatabase) { props.put("database.type", DatabaseType.DERBY.toString()); } else { - throw new IllegalArgumentException("Unknown database type " - + database); + throw new IllegalArgumentException("Unknown database type " + + database); } - //props.put("database.driver", database.getDriverClassName()); + // props.put("database.driver", database.getDriverClassName()); props.put("database.url", database.getJdbcUrl()); props.put("database.username", database.getUsername()); props.put("database.password", database.getPassword()); @@ -87,11 +70,6 @@ public class DatabaseComponent extends AbstractComponent { return database; } - /** - * DOCUMENT ME! - * - * @param aRuntime DOCUMENT ME! - */ @Override protected void doStop(Database aRuntime) { database.stop();