components-starter/camel-disruptor-starter/src/main/java/org/apache/camel/component/disruptor/vm/springboot/DisruptorVmComponentConverter.java [43:61]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) {
        if (source == null) {
            return null;
        }
        String ref = source.toString();
        if (!ref.startsWith("#")) {
            return null;
        }
        ref = ref.startsWith("#bean:") ? ref.substring(6) : ref.substring(1);
        switch (targetType.getName()) {
        case "org.apache.camel.component.disruptor.DisruptorWaitStrategy":
            return camelContext.getRegistry().lookupByNameAndType(ref,
                    org.apache.camel.component.disruptor.DisruptorWaitStrategy.class);
        case "org.apache.camel.component.disruptor.DisruptorProducerType":
            return camelContext.getRegistry().lookupByNameAndType(ref,
                    org.apache.camel.component.disruptor.DisruptorProducerType.class);
        }
        return null;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



components-starter/camel-disruptor-starter/src/main/java/org/apache/camel/component/disruptor/springboot/DisruptorComponentConverter.java [43:61]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public Object convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) {
        if (source == null) {
            return null;
        }
        String ref = source.toString();
        if (!ref.startsWith("#")) {
            return null;
        }
        ref = ref.startsWith("#bean:") ? ref.substring(6) : ref.substring(1);
        switch (targetType.getName()) {
        case "org.apache.camel.component.disruptor.DisruptorWaitStrategy":
            return camelContext.getRegistry().lookupByNameAndType(ref,
                    org.apache.camel.component.disruptor.DisruptorWaitStrategy.class);
        case "org.apache.camel.component.disruptor.DisruptorProducerType":
            return camelContext.getRegistry().lookupByNameAndType(ref,
                    org.apache.camel.component.disruptor.DisruptorProducerType.class);
        }
        return null;
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



