public class DefaultNodeIdFactory extends Object implements NodeIdFactory
| Modifier and Type | Field and Description |
|---|---|
protected static Map<String,AtomicInteger> |
nodeCounters |
| Constructor and Description |
|---|
DefaultNodeIdFactory() |
| Modifier and Type | Method and Description |
|---|---|
String |
createId(NamedNode definition)
Creates an id for the given model definition.
|
protected static AtomicInteger |
getNodeCounter(String key)
Returns the counter for the given node key, lazily creating one if necessary
|
protected static void |
resetAllCounters()
Helper method for test purposes that allows tests to start clean (made protected
to ensure that it is not called accidentally)
|
protected static Map<String,AtomicInteger> nodeCounters
public String createId(NamedNode definition)
NodeIdFactorycreateId in interface NodeIdFactorydefinition - model definition
(its most likely a OutputDefinition instance)protected static AtomicInteger getNodeCounter(String key)
protected static void resetAllCounters()
Apache Camel