Navigation :
Custom Operations
Customizing Default Operations
The default DLC operations can be found in DefaultDlcOperationsConfig
class and can be overridden.
For an example of this, see Custom Topic Ordering.
Adding Operations
Configuration
@Configuration
public class CustomOperationsConfig {
@Bean
public IDlcOperation customOperation(
) {
return new CustomOperation();
}
}
Alternatively you can annotate the CustomOperation
class with @Component
and let Spring manage the bean creation.
Custom Operation
class CustomOperation implements IDlcOperation<CustomResponse, CustomRequest> {
public CustomOperation() {
}
@Override
public String getName() {
return "CUSTOM";
}
@Override
public CustomResponse process(CustomRequest request) {
// Custom logic
}
}