public class DefaultCamelContextNameStrategy extends Object implements org.apache.camel.spi.CamelContextNameStrategy
| Constructor and Description |
|---|
DefaultCamelContextNameStrategy() |
DefaultCamelContextNameStrategy(String prefix) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
static int |
getNextCounter() |
String |
getNextName() |
boolean |
isFixedName() |
static void |
setCounter(int value)
To reset the counter, should only be used for testing purposes.
|
public DefaultCamelContextNameStrategy()
public DefaultCamelContextNameStrategy(String prefix)
public String getName()
getName in interface org.apache.camel.spi.CamelContextNameStrategypublic String getNextName()
getNextName in interface org.apache.camel.spi.CamelContextNameStrategypublic boolean isFixedName()
isFixedName in interface org.apache.camel.spi.CamelContextNameStrategypublic static int getNextCounter()
public static void setCounter(int value)
value - the counter valueApache Camel