test_class.declarator: entityManagerFactory
test_class.modifier: private
test_class.original_string: private EntityManagerFactory entityManagerFactory;
test_class.type: EntityManagerFactory
test_class.var_name: entityManagerFactory
test_class.declarator: entityManager
test_class.modifier: private
test_class.original_string: private EntityManager entityManager;
test_class.type: EntityManager
test_class.var_name: entityManager
test_class.file: dddlib-persistence/dddlib-persistence-jpa/src/test/java/org/dayatang/persistence/jpa/EntityManagerProviderTest.java
test_class.identifier: EntityManagerProviderTest
test_case.body: @Test
      public void testDefaultConstructor() {
          InstanceFactory.bind(EntityManagerFactory.class, entityManagerFactory);
          EntityManagerProvider instance = new EntityManagerProvider();
          EntityManager entityManager2 = instance.getEntityManager();
          assertSame(entityManager2, entityManager);
          EntityManager entityManager3 = instance.getEntityManager();
          assertSame(entityManager3, entityManager);
      }
test_case.class_method_signature: EntityManagerProviderTest.testDefaultConstructor()
test_case.full_signature: @Test public void testDefaultConstructor()
test_case.identifier: testDefaultConstructor
test_case.invocations: bind getEntityManager assertSame getEntityManager assertSame
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testDefaultConstructor()
focal_class.declarator: entityManagerFactory
focal_class.modifier: private
focal_class.original_string: private EntityManagerFactory entityManagerFactory;
focal_class.type: EntityManagerFactory
focal_class.var_name: entityManagerFactory
focal_class.declarator: entityManagerHolder = new ThreadLocal<EntityManager>()
focal_class.modifier: private final
focal_class.original_string: private final ThreadLocal<EntityManager> entityManagerHolder = new ThreadLocal<EntityManager>();
focal_class.type: ThreadLocal<EntityManager>
focal_class.var_name: entityManagerHolder
focal_class.file: dddlib-persistence/dddlib-persistence-jpa/src/main/java/org/dayatang/persistence/jpa/EntityManagerProvider.java
focal_class.identifier: EntityManagerProvider
focal_class.class_method_signature: EntityManagerProvider.EntityManagerProvider()
focal_class.full_signature: public  EntityManagerProvider()
focal_class.identifier: EntityManagerProvider
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  EntityManagerProvider()
focal_class.class_method_signature: EntityManagerProvider.EntityManagerProvider(EntityManagerFactory entityManagerFactory)
focal_class.full_signature: public  EntityManagerProvider(EntityManagerFactory entityManagerFactory)
focal_class.identifier: EntityManagerProvider
focal_class.modifiers: public
focal_class.parameters: (EntityManagerFactory entityManagerFactory)
focal_class.signature:  EntityManagerProvider(EntityManagerFactory entityManagerFactory)
focal_class.class_method_signature: EntityManagerProvider.EntityManagerProvider(EntityManager entityManager)
focal_class.full_signature: public  EntityManagerProvider(EntityManager entityManager)
focal_class.identifier: EntityManagerProvider
focal_class.modifiers: public
focal_class.parameters: (EntityManager entityManager)
focal_class.signature:  EntityManagerProvider(EntityManager entityManager)
focal_class.class_method_signature: EntityManagerProvider.getEntityManager()
focal_class.full_signature: public EntityManager getEntityManager()
focal_class.identifier: getEntityManager
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: EntityManager
focal_class.signature: EntityManager getEntityManager()
focal_class.class_method_signature: EntityManagerProvider.getEntityManagerFromIoC()
focal_class.full_signature: public EntityManager getEntityManagerFromIoC()
focal_class.identifier: getEntityManagerFromIoC
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: EntityManager
focal_class.signature: EntityManager getEntityManagerFromIoC()
focal_method.body: public EntityManager getEntityManager() {
          EntityManager result = entityManagerHolder.get();
          if (result != null && result.isOpen()) {
              return result;
          }
          result = getEntityManagerFromIoC();
          entityManagerHolder.set(result);
          return result;
      }
focal_method.class_method_signature: EntityManagerProvider.getEntityManager()
focal_method.full_signature: public EntityManager getEntityManager()
focal_method.identifier: getEntityManager
focal_method.invocations: get isOpen getEntityManagerFromIoC set
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: EntityManager
focal_method.signature: EntityManager getEntityManager()