Package org.apache.camel

Examples of org.apache.camel.Traceable


        return mi;
    }

    private String getEndpointUri(ProcessorDefinition<?> node) {
        if (node instanceof Traceable) {
            Traceable tr = (Traceable)node;
            return tr.getTraceLabel();
        } else {
            return node.getLabel();
        }
    }
View Full Code Here


            return expression.evaluate(exchange, String.class);
        }

        Processor target = processor;
        if (target != null && target instanceof Traceable) {
            Traceable trace = (Traceable) target;
            return trace.getTraceLabel();
        }
       
        // Compatiblity for old Traceable interface
        if (target != null && target instanceof org.apache.camel.processor.Traceable) {
            org.apache.camel.processor.Traceable trace = (org.apache.camel.processor.Traceable) target;
            return trace.getTraceLabel();
        }

        // default then to definition
        return processorDefinition.getLabel();
    }
View Full Code Here

        return mi;
    }

    private String getEndpointUri(ProcessorDefinition<?> node) {
        if (node instanceof Traceable) {
            Traceable tr = (Traceable)node;
            return tr.getTraceLabel();
        } else {
            return node.getLabel();
        }
    }
View Full Code Here

        return mi;
    }

    private String getEndpointUri(ProcessorDefinition<?> node) {
        if (node instanceof Traceable) {
            Traceable tr = (Traceable)node;
            return tr.getTraceLabel();
        } else {
            return node.getLabel();
        }
    }
View Full Code Here

        return mi;
    }

    private String getEndpointUri(ProcessorDefinition<?> node) {
        if (node instanceof Traceable) {
            Traceable tr = (Traceable)node;
            return tr.getTraceLabel();
        } else {
            return node.getLabel();
        }
    }
View Full Code Here

        if (target == null) {
            return null;
        }

        if (target instanceof Traceable) {
            Traceable trace = (Traceable) target;
            return trace.getTraceLabel();
        } else if (target instanceof org.apache.camel.processor.Traceable) {
            // to be backwards compatible
            org.apache.camel.processor.Traceable trace = (org.apache.camel.processor.Traceable) target;
            return trace.getTraceLabel();
        }

        // if we are a delegate then drill down
        if (target instanceof DelegateProcessor) {
            return getTraceLabel(((DelegateProcessor) target).getProcessor());
View Full Code Here

        return mi;
    }

    private String getEndpointUri(ProcessorDefinition<?> node) {
        if (node instanceof Traceable) {
            Traceable tr = (Traceable)node;
            return tr.getTraceLabel();
        } else {
            return node.getLabel();
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.camel.Traceable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.