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:
- $Revision: 835531 $
| 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(OptionalIdentifiedDefinition<?> definition)
- Description copied from interface:
NodeIdFactory
- Creates an id for the given model definiton.
- Specified by:
createId in interface NodeIdFactory
- Parameters:
definition - model definition
- Returns:
- the id created
getNodeCounter
protected static AtomicInteger getNodeCounter(String key)
- Returns the counter for the given node key, lazily creating one if necessary
Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.