Neeru Gupta created ATLAS-1037:
----------------------------------

             Summary: Identify and refactor Repository project code to move the 
intiailization logic out of constructors.
                 Key: ATLAS-1037
                 URL: https://issues.apache.org/jira/browse/ATLAS-1037
             Project: Atlas
          Issue Type: Improvement
    Affects Versions: 0.7-incubating
            Reporter: Neeru Gupta


Currently, singletons in repository project like DefaultMetadataService, 
GraphBackedSearchIndexer initialize bootstrap types and indices as part of 
object initialization (in constructors). This is not a good practice. It also 
interferes with object graph initialization. This code should be moved out of 
constructors. Initialization of store should happen after object graph has been 
loaded. One place to move this code is in 
GraphServletConfig.contextInitialized.startServices method. 

Test code will need to call this logic as well. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to