Interface ManagementStrategyFactory


public interface ManagementStrategyFactory
SPI factory that creates the ManagementStrategy and its associated LifecycleStrategy for a CamelContext.

Camel discovers implementations via FactoryFinder from the META-INF/services/ directory. Adding camel-management to the classpath registers the JMX-backed factory; without it the default no-op strategy is used. The factory produces three artifacts: a ManagementStrategy (which owns the event-notifier list and delegates to the ManagementAgent), an optional LifecycleStrategy (which listens to route and service lifecycle events and drives MBean registration), and then wires both into the context via setupManagement(org.apache.camel.CamelContext, ManagementStrategy, LifecycleStrategy).

See JMX in the Camel user manual.

See Also: