org.apache.camel.impl
Class DefaultNodeIdFactory
java.lang.Object
org.apache.camel.impl.DefaultNodeIdFactory
- All Implemented Interfaces:
- NodeIdFactory
public class DefaultNodeIdFactory
- extends Object
- implements NodeIdFactory
Default id factory.
- Version:
Method Summary |
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) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nodeCounters
protected static Map<String,AtomicInteger> nodeCounters
DefaultNodeIdFactory
public DefaultNodeIdFactory()
createId
public String createId(NamedNode definition)
- Description copied from interface:
NodeIdFactory
- Creates an id for the given model definition.
- Specified by:
createId
in interface NodeIdFactory
- Parameters:
definition
- model definition
(its most likely a OutputDefinition
instance)
- Returns:
- the id created
getNodeCounter
protected static AtomicInteger getNodeCounter(String key)
- Returns the counter for the given node key, lazily creating one if necessary
resetAllCounters
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)
Apache Camel