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 #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)
           
 
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