public class OsgiCamelContextNameStrategy extends Object implements org.apache.camel.spi.CamelContextNameStrategy
CamelContextNameStrategy that finds a free name in the
OSGi Service Registry to be used for auto assigned names.
If there is a name clash in the OSGi registry, then a new candidate name is used by appending
a unique counter.| Constructor and Description |
|---|
OsgiCamelContextNameStrategy(org.osgi.framework.BundleContext context) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
String |
getNextName() |
boolean |
isFixedName() |
public OsgiCamelContextNameStrategy(org.osgi.framework.BundleContext context)
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.CamelContextNameStrategyApache Camel