Github user snoopdave commented on a diff in the pull request:

    https://github.com/apache/incubator-usergrid/pull/120#discussion_r21743937
  
    --- Diff: 
stack/core/src/main/java/org/apache/usergrid/corepersistence/CpSetup.java ---
    @@ -82,11 +78,9 @@ public CpSetup( EntityManagerFactory emf, 
CassandraService cass ) {
         }
     
     
    -
    -
         public static Injector getInjector() {
             if ( injector == null ) {
    -            injector = Guice.createInjector( new GuiceModule() ); 
    +            injector = Guice.createInjector( new GuiceModule( emf ) ); 
    --- End diff --
    
    The reason for that is that the EntityDeletedHandler and other handers need 
access to the EMF and those handlers are created by Guice, so we need the EMF 
to be injectable -- BUT the one and only EMF instance is created by Spring. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to