test_class.file: dal-jdbc/src/test/java/org/unidal/dal/jdbc/datasource/JdbcDataSourceDescriptorManagerTest.java
test_class.identifier: JdbcDataSourceDescriptorManagerTest
test_class.superclass: extends ComponentTestCase
test_case.body: @Test
     public void testStatic() throws Exception {
        JdbcDataSourceDescriptorManager manager = lookup(JdbcDataSourceDescriptorManager.class);
        JdbcDataSourceDescriptor user = manager.getDescriptor("user");
        JdbcDataSourceDescriptor history = manager.getDescriptor("history");
  
        checkProperty(user, "user", "user");
        checkProperty(user, "url", "jdbc:mysql://localhost:3306/user?useUnicode=true&autoReconnect=true");
  
        checkProperty(history, "user", "history");
        checkProperty(history, "url", "jdbc:mysql://localhost:3306/history?useUnicode=true&autoReconnect=true");
  
        checkNames(manager, "jdbc-dal", "user", "history");
     }
test_case.class_method_signature: JdbcDataSourceDescriptorManagerTest.testStatic()
test_case.full_signature: @Test public void testStatic()
test_case.identifier: testStatic
test_case.invocations: lookup getDescriptor getDescriptor checkProperty checkProperty checkProperty checkProperty checkNames
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testStatic()
focal_class.declarator: m_descriptors = new HashMap<String, JdbcDataSourceDescriptor>()
focal_class.modifier: private
focal_class.original_string: private Map<String, JdbcDataSourceDescriptor> m_descriptors = new HashMap<String, JdbcDataSourceDescriptor>();
focal_class.type: Map<String, JdbcDataSourceDescriptor>
focal_class.var_name: m_descriptors
focal_class.declarator: m_providers
focal_class.modifier: private
focal_class.original_string: private List<DataSourceProvider> m_providers;
focal_class.type: List<DataSourceProvider>
focal_class.var_name: m_providers
focal_class.declarator: m_datasourceFile
focal_class.modifier: private
focal_class.original_string: private String m_datasourceFile;
focal_class.type: String
focal_class.var_name: m_datasourceFile
focal_class.file: dal-jdbc/src/main/java/org/unidal/dal/jdbc/datasource/JdbcDataSourceDescriptorManager.java
focal_class.identifier: JdbcDataSourceDescriptorManager
focal_class.interfaces: implements Initializable
focal_class.class_method_signature: JdbcDataSourceDescriptorManager.buildDescriptor(DataSourceDef ds)
focal_class.full_signature: protected JdbcDataSourceDescriptor buildDescriptor(DataSourceDef ds)
focal_class.identifier: buildDescriptor
focal_class.modifiers: protected
focal_class.parameters: (DataSourceDef ds)
focal_class.return: JdbcDataSourceDescriptor
focal_class.signature: JdbcDataSourceDescriptor buildDescriptor(DataSourceDef ds)
focal_class.class_method_signature: JdbcDataSourceDescriptorManager.findDataSource(String id)
focal_class.full_signature: private DataSourceDef findDataSource(String id)
focal_class.identifier: findDataSource
focal_class.modifiers: private
focal_class.parameters: (String id)
focal_class.return: DataSourceDef
focal_class.signature: DataSourceDef findDataSource(String id)
focal_class.class_method_signature: JdbcDataSourceDescriptorManager.getDataSourceNames()
focal_class.full_signature: public List<String> getDataSourceNames()
focal_class.identifier: getDataSourceNames
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<String>
focal_class.signature: List<String> getDataSourceNames()
focal_class.class_method_signature: JdbcDataSourceDescriptorManager.getDescriptor(String id)
focal_class.full_signature: public JdbcDataSourceDescriptor getDescriptor(String id)
focal_class.identifier: getDescriptor
focal_class.modifiers: public
focal_class.parameters: (String id)
focal_class.return: JdbcDataSourceDescriptor
focal_class.signature: JdbcDataSourceDescriptor getDescriptor(String id)
focal_class.class_method_signature: JdbcDataSourceDescriptorManager.initialize()
focal_class.full_signature: public void initialize()
focal_class.identifier: initialize
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void initialize()
focal_class.class_method_signature: JdbcDataSourceDescriptorManager.setDatasourceFile(String datasourceFile)
focal_class.full_signature: public void setDatasourceFile(String datasourceFile)
focal_class.identifier: setDatasourceFile
focal_class.modifiers: public
focal_class.parameters: (String datasourceFile)
focal_class.return: void
focal_class.signature: void setDatasourceFile(String datasourceFile)
focal_class.class_method_signature: JdbcDataSourceDescriptorManager.toTime(String source)
focal_class.full_signature: protected int toTime(String source)
focal_class.identifier: toTime
focal_class.modifiers: protected
focal_class.parameters: (String source)
focal_class.return: int
focal_class.signature: int toTime(String source)
focal_class.superclass: extends ContainerHolder
focal_method.body: public JdbcDataSourceDescriptor getDescriptor(String id) {
        JdbcDataSourceDescriptor configuration = m_descriptors.get(id);
  
        if (configuration == null) {
           DataSourceDef ds = findDataSource(id);
  
           if (ds != null) {
              configuration = buildDescriptor(ds);
              m_descriptors.put(id, configuration);
           }
        }
  
        return configuration;
     }
focal_method.class_method_signature: JdbcDataSourceDescriptorManager.getDescriptor(String id)
focal_method.full_signature: public JdbcDataSourceDescriptor getDescriptor(String id)
focal_method.identifier: getDescriptor
focal_method.invocations: get findDataSource buildDescriptor put
focal_method.modifiers: public
focal_method.parameters: (String id)
focal_method.return: JdbcDataSourceDescriptor
focal_method.signature: JdbcDataSourceDescriptor getDescriptor(String id)