private List<String> getConnectorCustomizersInitialize() { return Connector.super.getConnectorCustomizers(); }
public static void customizeComponent(final CamelContext context, final Connector connector, final ConnectorDescriptor descriptor, final Component component, final Map<String, Object> properties) { final List<String> customizers = CollectionsUtils.aggregate(ArrayList::new, connector.getConnectorCustomizers(), descriptor.getConnectorCustomizers()); // Set input/output data shape if the component proxy implements // Input/OutputDataShapeAware descriptor.getInputDataShape().ifPresent(ds -> trySetInputDataShape(component, ds)); descriptor.getOutputDataShape().ifPresent(ds -> trySetOutputDataShape(component, ds)); for (final String customizerType : customizers) { final ComponentCustomizer<Component> customizer = resolveCustomizer(context, customizerType); // Set the camel context if the customizer implements // the CamelContextAware interface. ObjectHelper.trySetCamelContext(customizer, context); // Set input/output data shape if the customizer implements // Input/OutputDataShapeAware descriptor.getInputDataShape().ifPresent(ds -> trySetInputDataShape(customizer, ds)); descriptor.getOutputDataShape().ifPresent(ds -> trySetOutputDataShape(customizer, ds)); // Try to set properties to the component setProperties(context, customizer, properties); // Invoke the customizer customizer.customize(component, properties); } }
uses(usesOptional); addAllConnectorCustomizers(instance.getConnectorCustomizers()); addAllActions(instance.getActions()); Optional<ActionsSummary> actionsSummaryOptional = instance.getActionsSummary();
pair(one.getComponentScheme(), another.getComponentScheme(), "component-schema"), pair(one.getConnectorFactory(), another.getConnectorFactory(), "connector-factory"), pair(one.getConnectorCustomizers(), another.getConnectorCustomizers(), "connector-customizers"), pair(one.getId(), another.getId(), "id"), pair(one.getTags(), another.getTags(), "tags"),