test_class.declarator: commandHandlerProvider
test_class.modifier: @Autowired
      private
test_class.original_string: @Autowired
      private CommandHandlerProvider commandHandlerProvider;
test_class.type: CommandHandlerProvider
test_class.var_name: commandHandlerProvider
test_class.file: fineract-provider/src/test/java/org/apache/fineract/commands/provider/CommandHandlerProviderTest.java
test_class.identifier: CommandHandlerProviderTest
test_case.body: @Test(expected = UnsupportedCommandException.class)
      public void shouldThrowUnsupportedCommandException() {
          this.commandHandlerProvider.getHandler("WHATEVER", "DOSOMETHING");
      }
test_case.class_method_signature: CommandHandlerProviderTest.shouldThrowUnsupportedCommandException()
test_case.full_signature: @Test(expected = UnsupportedCommandException.class) public void shouldThrowUnsupportedCommandException()
test_case.identifier: shouldThrowUnsupportedCommandException
test_case.invocations: getHandler
test_case.modifiers: @Test(expected = UnsupportedCommandException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldThrowUnsupportedCommandException()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(CommandHandlerProvider.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(CommandHandlerProvider.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
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.declarator: registeredHandlers
focal_class.modifier: private
focal_class.original_string: private HashMap<String, String> registeredHandlers;
focal_class.type: HashMap<String, String>
focal_class.var_name: registeredHandlers
focal_class.file: fineract-provider/src/main/java/org/apache/fineract/commands/provider/CommandHandlerProvider.java
focal_class.identifier: CommandHandlerProvider
focal_class.interfaces: implements ApplicationContextAware
focal_class.class_method_signature: CommandHandlerProvider.CommandHandlerProvider()
focal_class.full_signature:   CommandHandlerProvider()
focal_class.identifier: CommandHandlerProvider
focal_class.parameters: ()
focal_class.signature:  CommandHandlerProvider()
focal_class.class_method_signature: CommandHandlerProvider.getHandler(@Nonnull final String entity, @Nonnull final String action)
focal_class.full_signature: @Nonnull public NewCommandSourceHandler getHandler(@Nonnull final String entity, @Nonnull final String action)
focal_class.identifier: getHandler
focal_class.modifiers: @Nonnull public
focal_class.parameters: (@Nonnull final String entity, @Nonnull final String action)
focal_class.return: NewCommandSourceHandler
focal_class.signature: NewCommandSourceHandler getHandler(@Nonnull final String entity, @Nonnull final String action)
focal_class.class_method_signature: CommandHandlerProvider.initializeHandlerRegistry()
focal_class.full_signature: private void initializeHandlerRegistry()
focal_class.identifier: initializeHandlerRegistry
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void initializeHandlerRegistry()
focal_class.class_method_signature: CommandHandlerProvider.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_method.body: @Nonnull
      public NewCommandSourceHandler getHandler (@Nonnull final String entity, @Nonnull final String action) {
          Preconditions.checkArgument(StringUtils.isNoneEmpty(entity), "An entity must be given!");
          Preconditions.checkArgument(StringUtils.isNoneEmpty(action), "An action must be given!");
  
          final String key =  entity + "|" + action;
          if (!this.registeredHandlers.containsKey(key)) {
              throw new UnsupportedCommandException(key);
          }
          return (NewCommandSourceHandler)this.applicationContext.getBean(this.registeredHandlers.get(key));
      }
focal_method.class_method_signature: CommandHandlerProvider.getHandler(@Nonnull final String entity, @Nonnull final String action)
focal_method.full_signature: @Nonnull public NewCommandSourceHandler getHandler(@Nonnull final String entity, @Nonnull final String action)
focal_method.identifier: getHandler
focal_method.invocations: checkArgument isNoneEmpty checkArgument isNoneEmpty containsKey getBean get
focal_method.modifiers: @Nonnull public
focal_method.parameters: (@Nonnull final String entity, @Nonnull final String action)
focal_method.return: NewCommandSourceHandler
focal_method.signature: NewCommandSourceHandler getHandler(@Nonnull final String entity, @Nonnull final String action)