org.apache.camel.impl
Class ExplicitCamelContextNameStrategy

java.lang.Object
  extended by org.apache.camel.impl.ExplicitCamelContextNameStrategy
All Implemented Interfaces:
CamelContextNameStrategy

public class ExplicitCamelContextNameStrategy
extends Object
implements CamelContextNameStrategy

Strategy to used an explicit (fixed) name for CamelContext.

Version:

Constructor Summary
ExplicitCamelContextNameStrategy(String name)
           
 
Method Summary
 String getName()
          Gets the name

The CamelContextNameStrategy.isFixedName() determines if the name can be re-calculated such as when using a counter, or the name is always fixed.

 String getNextName()
          Gets the next calculated name, if this strategy is not using fixed names.
 boolean isFixedName()
          Whether the name will be fixed, or allow re-calculation such as by using an unique counter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExplicitCamelContextNameStrategy

public ExplicitCamelContextNameStrategy(String name)
Method Detail

getName

public String getName()
Description copied from interface: CamelContextNameStrategy
Gets the name

The CamelContextNameStrategy.isFixedName() determines if the name can be re-calculated such as when using a counter, or the name is always fixed.

Specified by:
getName in interface CamelContextNameStrategy
Returns:
the name.

getNextName

public String getNextName()
Description copied from interface: CamelContextNameStrategy
Gets the next calculated name, if this strategy is not using fixed names.

The CamelContextNameStrategy.isFixedName() determines if the name can be re-calculated such as when using a counter, or the name is always fixed.

Specified by:
getNextName in interface CamelContextNameStrategy
Returns:
the next name

isFixedName

public boolean isFixedName()
Description copied from interface: CamelContextNameStrategy
Whether the name will be fixed, or allow re-calculation such as by using an unique counter.

Specified by:
isFixedName in interface CamelContextNameStrategy
Returns:
true for fixed names, false for names which can re-calculated


Apache CAMEL