org.apache.camel.core.osgi
Class OsgiManagementNameStrategy
java.lang.Object
org.apache.camel.impl.DefaultManagementNameStrategy
org.apache.camel.core.osgi.OsgiManagementNameStrategy
- All Implemented Interfaces:
- org.apache.camel.spi.ManagementNameStrategy
public class OsgiManagementNameStrategy
- extends org.apache.camel.impl.DefaultManagementNameStrategy
OSGi enhanced ManagementNameStrategy
.
This ManagementNameStrategy
supports the default
tokens (see DefaultManagementNameStrategy
) and the following additional OSGi specific tokens
- #bundleId# - The bundle id
- #version# - The bundle version
- #symbolicName# - The bundle symbolic name
This implementation will by default use a name pattern as #symbolicName# and in case
of a clash (such as multiple versions of the same symbolicName),
then the pattern will fallback to append an unique counter #symbolicName#-#counter#.
- See Also:
DefaultManagementNameStrategy
Constructor Summary |
OsgiManagementNameStrategy(org.apache.camel.CamelContext camelContext,
org.osgi.framework.BundleContext bundleContext)
|
Methods inherited from class org.apache.camel.impl.DefaultManagementNameStrategy |
getName, getNamePattern, getNextName, isFixedName, resolveManagementName, setCounter, setNamePattern |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OsgiManagementNameStrategy
public OsgiManagementNameStrategy(org.apache.camel.CamelContext camelContext,
org.osgi.framework.BundleContext bundleContext)
customResolveManagementName
protected String customResolveManagementName(String pattern,
String answer)
- Overrides:
customResolveManagementName
in class org.apache.camel.impl.DefaultManagementNameStrategy
Apache Camel