test_class.declarator: guard
test_class.modifier: private
test_class.original_string: private VisibilityGuard guard;
test_class.type: VisibilityGuard
test_class.var_name: guard
test_class.declarator: repositories
test_class.modifier: private
test_class.original_string: private List<Repository> repositories;
test_class.type: List<Repository>
test_class.var_name: repositories
test_class.declarator: boundedContext
test_class.modifier: private
test_class.original_string: private BoundedContext boundedContext;
test_class.type: BoundedContext
test_class.var_name: boundedContext
test_class.file: server/src/test/java/io/spine/server/VisibilityGuardTest.java
test_class.identifier: VisibilityGuardTest
test_case.body: @Test
      @DisplayName("shutdown repositories")
      void shutdownRepositories() {
          guard.shutDownRepositories();
  
          for (Repository repository : repositories) {
              assertFalse(repository.isOpen());
          }
      }
test_case.class_method_signature: VisibilityGuardTest.shutdownRepositories()
test_case.full_signature: @Test @DisplayName("shutdown repositories") void shutdownRepositories()
test_case.identifier: shutdownRepositories
test_case.invocations: shutDownRepositories assertFalse isOpen
test_case.modifiers: @Test @DisplayName("shutdown repositories")
test_case.parameters: ()
test_case.return: void
test_case.signature: void shutdownRepositories()
focal_class.declarator: repositories = new HashMap<>()
focal_class.modifier: private final
focal_class.original_string: private final
      Map<Class<? extends EntityState>, RepositoryAccess> repositories = new HashMap<>();
focal_class.type: Map<Class<? extends EntityState>, RepositoryAccess>
focal_class.var_name: repositories
focal_class.file: server/src/main/java/io/spine/server/VisibilityGuard.java
focal_class.identifier: VisibilityGuard
focal_class.class_method_signature: VisibilityGuard.VisibilityGuard()
focal_class.full_signature: private  VisibilityGuard()
focal_class.identifier: VisibilityGuard
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  VisibilityGuard()
focal_class.class_method_signature: VisibilityGuard.newInstance()
focal_class.full_signature: static VisibilityGuard newInstance()
focal_class.identifier: newInstance
focal_class.modifiers: static
focal_class.parameters: ()
focal_class.return: VisibilityGuard
focal_class.signature: VisibilityGuard newInstance()
focal_class.class_method_signature: VisibilityGuard.register(Repository<?, ?> repository)
focal_class.full_signature:  void register(Repository<?, ?> repository)
focal_class.identifier: register
focal_class.parameters: (Repository<?, ?> repository)
focal_class.return: void
focal_class.signature: void register(Repository<?, ?> repository)
focal_class.class_method_signature: VisibilityGuard.checkNotAlreadyRegistered(Class<? extends EntityState> stateClass)
focal_class.full_signature: private void checkNotAlreadyRegistered(Class<? extends EntityState> stateClass)
focal_class.identifier: checkNotAlreadyRegistered
focal_class.modifiers: private
focal_class.parameters: (Class<? extends EntityState> stateClass)
focal_class.return: void
focal_class.signature: void checkNotAlreadyRegistered(Class<? extends EntityState> stateClass)
focal_class.class_method_signature: VisibilityGuard.hasRepository(Class<? extends EntityState> stateClass)
focal_class.full_signature:  boolean hasRepository(Class<? extends EntityState> stateClass)
focal_class.identifier: hasRepository
focal_class.parameters: (Class<? extends EntityState> stateClass)
focal_class.return: boolean
focal_class.signature: boolean hasRepository(Class<? extends EntityState> stateClass)
focal_class.class_method_signature: VisibilityGuard.repositoryFor(Class<? extends EntityState> stateClass)
focal_class.full_signature:  Optional<Repository<?, ?>> repositoryFor(Class<? extends EntityState> stateClass)
focal_class.identifier: repositoryFor
focal_class.parameters: (Class<? extends EntityState> stateClass)
focal_class.return: Optional<Repository<?, ?>>
focal_class.signature: Optional<Repository<?, ?>> repositoryFor(Class<? extends EntityState> stateClass)
focal_class.class_method_signature: VisibilityGuard.findOrThrow(Class<? extends EntityState> stateClass)
focal_class.full_signature: private RepositoryAccess findOrThrow(Class<? extends EntityState> stateClass)
focal_class.identifier: findOrThrow
focal_class.modifiers: private
focal_class.parameters: (Class<? extends EntityState> stateClass)
focal_class.return: RepositoryAccess
focal_class.signature: RepositoryAccess findOrThrow(Class<? extends EntityState> stateClass)
focal_class.class_method_signature: VisibilityGuard.get(Class<? extends EntityState> stateClass)
focal_class.full_signature:  Repository<?, ?> get(Class<? extends EntityState> stateClass)
focal_class.identifier: get
focal_class.parameters: (Class<? extends EntityState> stateClass)
focal_class.return: Repository<?, ?>
focal_class.signature: Repository<?, ?> get(Class<? extends EntityState> stateClass)
focal_class.class_method_signature: VisibilityGuard.repoAccess()
focal_class.full_signature: private Stream<RepositoryAccess> repoAccess()
focal_class.identifier: repoAccess
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: Stream<RepositoryAccess>
focal_class.signature: Stream<RepositoryAccess> repoAccess()
focal_class.class_method_signature: VisibilityGuard.repositories()
focal_class.full_signature: private ImmutableSet<Repository<?, ?>> repositories()
focal_class.identifier: repositories
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: ImmutableSet<Repository<?, ?>>
focal_class.signature: ImmutableSet<Repository<?, ?>> repositories()
focal_class.class_method_signature: VisibilityGuard.entityStateTypes(Visibility visibility)
focal_class.full_signature: public Set<TypeName> entityStateTypes(Visibility visibility)
focal_class.identifier: entityStateTypes
focal_class.modifiers: public
focal_class.parameters: (Visibility visibility)
focal_class.return: Set<TypeName>
focal_class.signature: Set<TypeName> entityStateTypes(Visibility visibility)
focal_class.class_method_signature: VisibilityGuard.allEntityTypes()
focal_class.full_signature:  Set<TypeName> allEntityTypes()
focal_class.identifier: allEntityTypes
focal_class.parameters: ()
focal_class.return: Set<TypeName>
focal_class.signature: Set<TypeName> allEntityTypes()
focal_class.class_method_signature: VisibilityGuard.shutDownRepositories()
focal_class.full_signature:  void shutDownRepositories()
focal_class.identifier: shutDownRepositories
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void shutDownRepositories()
focal_class.class_method_signature: VisibilityGuard.isClosed()
focal_class.full_signature:  boolean isClosed()
focal_class.identifier: isClosed
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isClosed()
focal_method.body: void shutDownRepositories() {
          repositories().forEach(Repository::close);
          repositories.clear();
      }
focal_method.class_method_signature: VisibilityGuard.shutDownRepositories()
focal_method.full_signature:  void shutDownRepositories()
focal_method.identifier: shutDownRepositories
focal_method.invocations: forEach repositories clear
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void shutDownRepositories()