From 65e9b2fd45ee3d77263e0d71f9150ea4d2054070 Mon Sep 17 00:00:00 2001 From: Santhosh Gandhe <1909520+san81@users.noreply.github.com> Date: Wed, 2 Oct 2024 14:21:59 -0700 Subject: [PATCH] using better naming Signed-off-by: Santhosh Gandhe <1909520+san81@users.noreply.github.com> --- .../dataprepper/plugin/PluginBeanFactoryProvider.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/data-prepper-plugin-framework/src/main/java/org/opensearch/dataprepper/plugin/PluginBeanFactoryProvider.java b/data-prepper-plugin-framework/src/main/java/org/opensearch/dataprepper/plugin/PluginBeanFactoryProvider.java index fc353595a8..02067a0545 100644 --- a/data-prepper-plugin-framework/src/main/java/org/opensearch/dataprepper/plugin/PluginBeanFactoryProvider.java +++ b/data-prepper-plugin-framework/src/main/java/org/opensearch/dataprepper/plugin/PluginBeanFactoryProvider.java @@ -64,16 +64,16 @@ public BeanFactory get() { } public BeanFactory initializePluginSpecificIsolatedContext(Class[] markersToScanForDI) { - AnnotationConfigApplicationContext pluginDIContext = new AnnotationConfigApplicationContext(); + AnnotationConfigApplicationContext isolatedPluginApplicationContext = new AnnotationConfigApplicationContext(); if(markersToScanForDI!=null && markersToScanForDI.length>0) { // If packages to scan is provided in this plugin annotation, which indicates // that this plugin is interested in using Dependency Injection isolated for its module Arrays.stream(markersToScanForDI) .map(Class::getPackageName) - .forEach(pluginDIContext::scan); - pluginDIContext.refresh(); + .forEach(isolatedPluginApplicationContext::scan); + isolatedPluginApplicationContext.refresh(); } - pluginDIContext.setParent(sharedPluginApplicationContext); - return pluginDIContext.getBeanFactory(); + isolatedPluginApplicationContext.setParent(sharedPluginApplicationContext); + return isolatedPluginApplicationContext.getBeanFactory(); } }