public class RouteIdFactory extends Object implements NodeIdFactory
For direct/seda routes it returns route name (direct:start -> start). For rest routes it returns its method and context path formatted as one string.
When id cannot be generated, falls back to other NodeIdFactory
implementation.
If none is passed in the constructor, then DefaultNodeIdFactory
is used.
Constructor and Description |
---|
RouteIdFactory() |
RouteIdFactory(NodeIdFactory defaultNodeIdFactory) |
Modifier and Type | Method and Description |
---|---|
String |
createId(NamedNode definition)
Creates an id for the given model definition.
|
public RouteIdFactory()
public RouteIdFactory(NodeIdFactory defaultNodeIdFactory)
public String createId(NamedNode definition)
NodeIdFactory
createId
in interface NodeIdFactory
definition
- model definition
(its most likely a OutputDefinition
instance)Apache Camel