SpringComponent now supports adding properties as beans instead of
authorerik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Wed, 14 May 2008 21:11:35 +0000 (21:11 +0000)
committererik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Wed, 14 May 2008 21:11:35 +0000 (21:11 +0000)
through property configurer.

HibernateComponent no longer reads the hibernate properties.
Next step is to put in generic hibernate properties through the constructor and to put in application-independent properties
(schemaupdate and dialect) through a hibernate config object as a required interface.

security/src/test/java/org/wamblee/usermgt/hibernate/ExternalDatasourceComponent.java

index 490c230523f03a96ca5b3a7db4b4f94ca770d546..673aaceb6d5114f23ef4303fa7520b9224a1f936 100644 (file)
@@ -40,6 +40,7 @@ public class ExternalDatasourceComponent extends SpringComponent {
                 createProvidedMap(), new TreeMap<RequiredInterface, String>());
         Properties props = new Properties(); 
         props.load(new ClassPathResource(DATABASE_PROPERTIES).getInputStream());
+     
         for (Object key: props.keySet()) { 
             System.out.println("Key " + key + " value " + props.getProperty((String)key));
         }