org.apache.camel.impl
Class DefaultCamelContextNameStrategy

java.lang.Object
  extended by org.apache.camel.impl.DefaultCamelContextNameStrategy
All Implemented Interfaces:
CamelContextNameStrategy
Direct Known Subclasses:
OsgiCamelContextNameStrategy

public class DefaultCamelContextNameStrategy
extends Object
implements CamelContextNameStrategy

A default name strategy which auto assigns a name using a prefix-counter pattern.

Version:
$Revision$

Constructor Summary
DefaultCamelContextNameStrategy()
           
DefaultCamelContextNameStrategy(String prefix)
           
 
Method Summary
 String getName()
           
static int getNextCounter()
           
 String getNextName()
           
static void setCounter(int value)
          To reset the counter, should only be used for testing purposes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultCamelContextNameStrategy

public DefaultCamelContextNameStrategy()

DefaultCamelContextNameStrategy

public DefaultCamelContextNameStrategy(String prefix)
Method Detail

getName

public String getName()
Specified by:
getName in interface CamelContextNameStrategy

getNextName

public String getNextName()

getNextCounter

public static int getNextCounter()

setCounter

public static void setCounter(int value)
To reset the counter, should only be used for testing purposes.

Parameters:
value - the counter value


Apache CAMEL