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
Modifier and TypeClassDescriptionstatic final record
static final record
static final record
-
Constructor Summary
ConstructorDescriptionControlBusController
(ControlBusCommandRegistry controlBusCommandRegistry, FormattingConversionService conversionService) -
Method Summary
Modifier and TypeMethodDescriptionvoid
invokeCommand
(String command, List<ControlBusController.CommandArgument> arguments) void
setBeanFactory
(BeanFactory beanFactory)
-
Constructor Details
-
ControlBusController
public ControlBusController(ControlBusCommandRegistry controlBusCommandRegistry, FormattingConversionService conversionService)
-
-
Method Details
-
setBeanFactory
- Specified by:
setBeanFactory
in interfaceBeanFactoryAware
- Throws:
BeansException
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceInitializingBean
- Throws:
Exception
-
getCommands
-
invokeCommand
@PostMapping(name="invokeCommand", path="/{command}") public Object invokeCommand(@PathVariable String command, @RequestBody(required=false) List<ControlBusController.CommandArgument> arguments)
-