Class ControlBusController
java.lang.Object
org.springframework.integration.http.management.ControlBusController
- All Implemented Interfaces:
Aware,BeanFactoryAware,InitializingBean
@RestController
@RequestMapping("/control-bus")
public class ControlBusController
extends Object
implements BeanFactoryAware, InitializingBean
The REST Controller to provide the management API for Control Bus pattern.
- Since:
- 6.4
- Author:
- Artem Bilan
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionControlBusController(ControlBusCommandRegistry controlBusCommandRegistry, FormattingConversionService conversionService) -
Method Summary
Modifier and TypeMethodDescriptionvoidinvokeCommand(String command, List<ControlBusController.CommandArgument> arguments) voidsetBeanFactory(BeanFactory beanFactory)
-
Constructor Details
-
ControlBusController
public ControlBusController(ControlBusCommandRegistry controlBusCommandRegistry, FormattingConversionService conversionService)
-
-
Method Details
-
setBeanFactory
- Specified by:
setBeanFactoryin interfaceBeanFactoryAware- Throws:
BeansException
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceInitializingBean- Throws:
Exception
-
getCommands
-
invokeCommand
@PostMapping(name="invokeCommand", path="/{command}") public Object invokeCommand(@PathVariable String command, @RequestBody(required=false) List<ControlBusController.CommandArgument> arguments)
-