@Test @DisplayName("throw ISE when obtaining a repository for non-registered entity state class") void throwOnNoRepoRegistered() { assertThrows(IllegalStateException.class, () -> context.internalAccess() .findRepository(Project.class)); }
@Internal public final InternalAccess internalAccess() { Security.allowOnlyFrameworkServer(); return this.internalAccess; }
BoundedContext implements Closeable, Logging { @Internal public final InternalAccess internalAccess() { Security.allowOnlyFrameworkServer(); return this.internalAccess; } }
BoundedContext implements Closeable, Logging { @Internal public final InternalAccess internalAccess() { Security.allowOnlyFrameworkServer(); return this.internalAccess; } @SuppressWarnings("ThisEscapedInObjectConstruction") // to inject dependencies. @Internal protected  BoundedContext(BoundedContextBuilder builder); }
BoundedContext implements Closeable, Logging { @Internal public final InternalAccess internalAccess() { Security.allowOnlyFrameworkServer(); return this.internalAccess; } @SuppressWarnings("ThisEscapedInObjectConstruction") // to inject dependencies. @Internal protected  BoundedContext(BoundedContextBuilder builder); static BoundedContextBuilder singleTenant(String name); static BoundedContextBuilder multitenant(String name); Set<TypeName> stateTypes(Visibility visibility); Set<TypeName> stateTypes(); boolean hasEntitiesOfType(Class<? extends Entity<?, ?>> entityClass); boolean hasEntitiesWithState(Class<? extends EntityState> stateClass); CommandBus commandBus(); EventBus eventBus(); ImportBus importBus(); Stand stand(); BoundedContextName name(); ContextSpec spec(); boolean isMultitenant(); @Internal abstract SystemClient systemClient(); @Override void close(); @Override boolean isOpen(); @Override String toString(); @Internal final InternalAccess internalAccess(); }
BoundedContext implements Closeable, Logging { @Internal public final InternalAccess internalAccess() { Security.allowOnlyFrameworkServer(); return this.internalAccess; } @SuppressWarnings("ThisEscapedInObjectConstruction") // to inject dependencies. @Internal protected  BoundedContext(BoundedContextBuilder builder); static BoundedContextBuilder singleTenant(String name); static BoundedContextBuilder multitenant(String name); Set<TypeName> stateTypes(Visibility visibility); Set<TypeName> stateTypes(); boolean hasEntitiesOfType(Class<? extends Entity<?, ?>> entityClass); boolean hasEntitiesWithState(Class<? extends EntityState> stateClass); CommandBus commandBus(); EventBus eventBus(); ImportBus importBus(); Stand stand(); BoundedContextName name(); ContextSpec spec(); boolean isMultitenant(); @Internal abstract SystemClient systemClient(); @Override void close(); @Override boolean isOpen(); @Override String toString(); @Internal final InternalAccess internalAccess();  }