org.apache.camel.core.osgi
Class OsgiManagementNameStrategy

java.lang.Object
  extended by org.apache.camel.impl.DefaultManagementNameStrategy
      extended by 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

This implementation will by default use a name pattern as #bundleId#-#name# and in case of a clash, then the pattern will fallback to be using the counter as #bundleId#-#name#-#counter#.

See Also:
DefaultManagementNameStrategy

Constructor Summary
OsgiManagementNameStrategy(org.apache.camel.CamelContext camelContext, org.osgi.framework.BundleContext bundleContext)
           
 
Method Summary
protected  String customResolveManagementName(String pattern, String answer)
           
 
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
 

Constructor Detail

OsgiManagementNameStrategy

public OsgiManagementNameStrategy(org.apache.camel.CamelContext camelContext,
                                  org.osgi.framework.BundleContext bundleContext)
Method Detail

customResolveManagementName

protected String customResolveManagementName(String pattern,
                                             String answer)
Overrides:
customResolveManagementName in class org.apache.camel.impl.DefaultManagementNameStrategy


Apache CAMEL