Package org.apache.camel.test.junit5
Class DebugBreakpoint
java.lang.Object
org.apache.camel.support.BreakpointSupport
org.apache.camel.test.junit5.DebugBreakpoint
- All Implemented Interfaces:
org.apache.camel.spi.Breakpoint
public abstract class DebugBreakpoint
extends org.apache.camel.support.BreakpointSupport
To easily debug by overriding the debugBefore and debugAfter methods.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.camel.spi.Breakpoint
org.apache.camel.spi.Breakpoint.State
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
afterProcess
(org.apache.camel.Exchange exchange, org.apache.camel.Processor processor, org.apache.camel.NamedNode definition, long timeTaken) void
beforeProcess
(org.apache.camel.Exchange exchange, org.apache.camel.Processor processor, org.apache.camel.NamedNode definition) protected abstract void
debugAfter
(org.apache.camel.Exchange exchange, org.apache.camel.Processor processor, org.apache.camel.model.ProcessorDefinition<?> definition, String id, String label, long timeTaken) Single step debugs and Camel invokes this method after processing the given processorprotected abstract void
debugBefore
(org.apache.camel.Exchange exchange, org.apache.camel.Processor processor, org.apache.camel.model.ProcessorDefinition<?> definition, String id, String label) Single step debugs and Camel invokes this method before entering the given processorMethods inherited from class org.apache.camel.support.BreakpointSupport
activate, getState, onEvent, suspend
-
Constructor Details
-
DebugBreakpoint
public DebugBreakpoint()
-
-
Method Details
-
beforeProcess
public void beforeProcess(org.apache.camel.Exchange exchange, org.apache.camel.Processor processor, org.apache.camel.NamedNode definition) - Specified by:
beforeProcess
in interfaceorg.apache.camel.spi.Breakpoint
- Overrides:
beforeProcess
in classorg.apache.camel.support.BreakpointSupport
-
afterProcess
public void afterProcess(org.apache.camel.Exchange exchange, org.apache.camel.Processor processor, org.apache.camel.NamedNode definition, long timeTaken) - Specified by:
afterProcess
in interfaceorg.apache.camel.spi.Breakpoint
- Overrides:
afterProcess
in classorg.apache.camel.support.BreakpointSupport
-
debugBefore
protected abstract void debugBefore(org.apache.camel.Exchange exchange, org.apache.camel.Processor processor, org.apache.camel.model.ProcessorDefinition<?> definition, String id, String label) Single step debugs and Camel invokes this method before entering the given processor- Parameters:
exchange
- theExchange
processor
- theProcessor
which was processeddefinition
- theProcessorDefinition
definition of the processorid
- the definition IDlabel
- the definition label
-
debugAfter
protected abstract void debugAfter(org.apache.camel.Exchange exchange, org.apache.camel.Processor processor, org.apache.camel.model.ProcessorDefinition<?> definition, String id, String label, long timeTaken) Single step debugs and Camel invokes this method after processing the given processor- Parameters:
exchange
- theExchange
processor
- theProcessor
which was processeddefinition
- theProcessorDefinition
definition of the processorid
- the definition IDlabel
- the definition label
-