Interface ManagementObjectStrategy


public interface ManagementObjectStrategy
Strategy that creates the managed wrapper objects Camel registers in JMX for its internal artifacts.

Before Camel can register a CamelContext, Route, Processor, Component, or other runtime object as an MBean, it needs a managed facade that exposes the right attributes and operations. This strategy supplies those facades (for example, ManagedCamelContext, ManagedRoute, ManagedProcessor) for each artifact type.

The ManagementStrategy calls the appropriate getManagedObjectFor* method, then the returned object is assembled into a ModelMBean by ManagementMBeanAssembler and registered under the ObjectName computed by ManagementObjectNameStrategy. Replacing this strategy allows advanced users to substitute custom MBean facades for any Camel type.

See JMX in the Camel user manual.

See Also: