Interface ManagementObjectNameStrategy


public interface ManagementObjectNameStrategy
Strategy for computing the full ObjectName (domain plus all key-value properties) for every Camel artifact registered in JMX.

A JMX ObjectName encodes both a domain (e.g., org.apache.camel) and a set of typed key-value pairs (e.g., context=myApp, type=routes, name=myRoute). This strategy provides a dedicated factory method for each Camel artifact type so that the correct type key and identifying attributes are always applied consistently.

The ManagementStrategy calls the appropriate getObjectNameFor* method before invoking ManagementAgent.register(Object, ObjectName) or ManagementAgent.unregister(ObjectName). The domain portion of the ObjectName is configured on ManagementAgent.getMBeanObjectDomainName(), while the name key within the context entry is governed by ManagementNameStrategy.

See JMX in the Camel user manual.

See Also: