RegisteredSslBundle Class — spring-boot Architecture
Architecture documentation for the RegisteredSslBundle class in DefaultSslBundleRegistry.java from the spring-boot codebase.
Entity Profile
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/ssl/DefaultSslBundleRegistry.java lines 103–136
private static class RegisteredSslBundle {
private final String name;
private final List<Consumer<SslBundle>> updateHandlers = new CopyOnWriteArrayList<>();
private volatile SslBundle bundle;
RegisteredSslBundle(String name, SslBundle bundle) {
this.name = name;
this.bundle = bundle;
}
void update(SslBundle updatedBundle) {
Assert.notNull(updatedBundle, "'updatedBundle' must not be null");
this.bundle = updatedBundle;
if (this.updateHandlers.isEmpty()) {
logger.warn(LogMessage.format(
"SSL bundle '%s' has been updated but may be in use by a technology that doesn't support SSL reloading",
this.name));
}
this.updateHandlers.forEach((handler) -> handler.accept(updatedBundle));
}
SslBundle getBundle() {
return this.bundle;
}
void addUpdateHandler(Consumer<SslBundle> updateHandler) {
Assert.notNull(updateHandler, "'updateHandler' must not be null");
this.updateHandlers.add(updateHandler);
}
}
Domain
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free