test_class.declarator: context
test_class.modifier: private
test_class.original_string: private AnnotationConfigApplicationContext context;
test_class.type: AnnotationConfigApplicationContext
test_class.var_name: context
test_class.declarator: sut
test_class.modifier: private
test_class.original_string: private PluginContext sut;
test_class.type: PluginContext
test_class.var_name: sut
test_class.file: plugface-spring/src/test/java/org/plugface/spring/SpringPluginContextTest.java
test_class.identifier: SpringPluginContextTest
test_case.body: @Test
      public void shouldLoadFromPC() {
          final TestPlugin plugin = sut.getPlugin(TestPlugin.class);
  
          assertNotNull(plugin);
      }
test_case.class_method_signature: SpringPluginContextTest.shouldLoadFromPC()
test_case.full_signature: @Test public void shouldLoadFromPC()
test_case.identifier: shouldLoadFromPC
test_case.invocations: getPlugin assertNotNull
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldLoadFromPC()
focal_class.declarator: applicationContext
focal_class.modifier: private
focal_class.original_string: private ApplicationContext applicationContext;
focal_class.type: ApplicationContext
focal_class.var_name: applicationContext
focal_class.file: plugface-spring/src/main/java/org/plugface/spring/SpringPluginContext.java
focal_class.identifier: SpringPluginContext
focal_class.interfaces: implements ApplicationContextAware
focal_class.class_method_signature: SpringPluginContext.setApplicationContext(ApplicationContext applicationContext)
focal_class.full_signature: @Override public void setApplicationContext(ApplicationContext applicationContext)
focal_class.identifier: setApplicationContext
focal_class.modifiers: @Override public
focal_class.parameters: (ApplicationContext applicationContext)
focal_class.return: void
focal_class.signature: void setApplicationContext(ApplicationContext applicationContext)
focal_class.class_method_signature: SpringPluginContext.getPlugin(String pluginName)
focal_class.full_signature: @Override public T getPlugin(String pluginName)
focal_class.identifier: getPlugin
focal_class.modifiers: @Override public
focal_class.parameters: (String pluginName)
focal_class.return: T
focal_class.signature: T getPlugin(String pluginName)
focal_class.class_method_signature: SpringPluginContext.getPlugin(Class<T> pluginClass)
focal_class.full_signature: @Override public T getPlugin(Class<T> pluginClass)
focal_class.identifier: getPlugin
focal_class.modifiers: @Override public
focal_class.parameters: (Class<T> pluginClass)
focal_class.return: T
focal_class.signature: T getPlugin(Class<T> pluginClass)
focal_class.class_method_signature: SpringPluginContext.hasPlugin(Class<T> pluginClass)
focal_class.full_signature: @Override public boolean hasPlugin(Class<T> pluginClass)
focal_class.identifier: hasPlugin
focal_class.modifiers: @Override public
focal_class.parameters: (Class<T> pluginClass)
focal_class.return: boolean
focal_class.signature: boolean hasPlugin(Class<T> pluginClass)
focal_class.class_method_signature: SpringPluginContext.hasPlugin(String pluginName)
focal_class.full_signature: @Override public boolean hasPlugin(String pluginName)
focal_class.identifier: hasPlugin
focal_class.modifiers: @Override public
focal_class.parameters: (String pluginName)
focal_class.return: boolean
focal_class.signature: boolean hasPlugin(String pluginName)
focal_class.superclass: extends DefaultPluginContext
focal_method.body: @Override
      public <T> T getPlugin(String pluginName) {
          final T plugin = super.getPlugin(pluginName);
          if (plugin == null) {
              try {
                  return (T) applicationContext.getBean(pluginName);
              } catch (NoSuchBeanDefinitionException e) {
                  return null;
              }
          }
          return plugin;
      }
focal_method.class_method_signature: SpringPluginContext.getPlugin(String pluginName)
focal_method.full_signature: @Override public T getPlugin(String pluginName)
focal_method.identifier: getPlugin
focal_method.invocations: getPlugin getBean
focal_method.modifiers: @Override public
focal_method.parameters: (String pluginName)
focal_method.return: T
focal_method.signature: T getPlugin(String pluginName)