From ccc6ea59425f88553e021e8a2c3372ab89a805a2 Mon Sep 17 00:00:00 2001 From: Alfredo Gutierrez Date: Wed, 21 Aug 2024 12:19:55 -0600 Subject: [PATCH] Renamed to simply App to just BlockNodeApp Signed-off-by: Alfredo Gutierrez --- ...onComponent.java => BlockNodeAppInjectionComponent.java} | 6 +++--- ...njectionModule.java => BlockNodeAppInjectionModule.java} | 2 +- server/src/main/java/com/hedera/block/server/Server.java | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) rename server/src/main/java/com/hedera/block/server/{BlockNodeAppServerInjectionComponent.java => BlockNodeAppInjectionComponent.java} (87%) rename server/src/main/java/com/hedera/block/server/{BlockNodeAppServerInjectionModule.java => BlockNodeAppInjectionModule.java} (95%) diff --git a/server/src/main/java/com/hedera/block/server/BlockNodeAppServerInjectionComponent.java b/server/src/main/java/com/hedera/block/server/BlockNodeAppInjectionComponent.java similarity index 87% rename from server/src/main/java/com/hedera/block/server/BlockNodeAppServerInjectionComponent.java rename to server/src/main/java/com/hedera/block/server/BlockNodeAppInjectionComponent.java index 29d51661..b429b4e8 100644 --- a/server/src/main/java/com/hedera/block/server/BlockNodeAppServerInjectionComponent.java +++ b/server/src/main/java/com/hedera/block/server/BlockNodeAppInjectionComponent.java @@ -24,14 +24,14 @@ @Singleton @Component( modules = { - BlockNodeAppServerInjectionModule.class, + BlockNodeAppInjectionModule.class, HealthInjectionModule.class, }) -public interface BlockNodeAppServerInjectionComponent { +public interface BlockNodeAppInjectionComponent { /** * Get the block node app server. * * @return the block node app server */ - BlockNodeApp getBlockNodeAppServer(); + BlockNodeApp getBlockNodeApp(); } diff --git a/server/src/main/java/com/hedera/block/server/BlockNodeAppServerInjectionModule.java b/server/src/main/java/com/hedera/block/server/BlockNodeAppInjectionModule.java similarity index 95% rename from server/src/main/java/com/hedera/block/server/BlockNodeAppServerInjectionModule.java rename to server/src/main/java/com/hedera/block/server/BlockNodeAppInjectionModule.java index 41a1bd8c..f69f4de5 100644 --- a/server/src/main/java/com/hedera/block/server/BlockNodeAppServerInjectionModule.java +++ b/server/src/main/java/com/hedera/block/server/BlockNodeAppInjectionModule.java @@ -25,7 +25,7 @@ * everything should be inside its own modules. */ @Module -public interface BlockNodeAppServerInjectionModule { +public interface BlockNodeAppInjectionModule { /** * Binds the service status to the service status implementation. diff --git a/server/src/main/java/com/hedera/block/server/Server.java b/server/src/main/java/com/hedera/block/server/Server.java index 0a1bb428..cd9e07c9 100644 --- a/server/src/main/java/com/hedera/block/server/Server.java +++ b/server/src/main/java/com/hedera/block/server/Server.java @@ -36,9 +36,9 @@ public static void main(final String[] args) { LOGGER.log(System.Logger.Level.INFO, "Starting BlockNode Server"); @NonNull - final BlockNodeAppServerInjectionComponent daggerComponent = - DaggerBlockNodeAppServerInjectionComponent.create(); - @NonNull final BlockNodeApp server = daggerComponent.getBlockNodeAppServer(); + final BlockNodeAppInjectionComponent daggerComponent = + DaggerBlockNodeAppInjectionComponent.create(); + @NonNull final BlockNodeApp server = daggerComponent.getBlockNodeApp(); try { server.startServer();