Class ObjectNameEncoderAccessor


  • public class ObjectNameEncoderAccessor
    extends java.lang.Object

    Accessor class that should be used to get the ObjectNameEncoder that will be used to encode and decode ObjectName values. To get the encoder, the getObjectNameEncoder() method should be invoked.

    It is vital that both the server and the client are configured to use the same ObjectNameEncoder. The caplin.jmx.encoder system property (see OBJECT_NAME_ENCODER_CLASS_PROPERTY_NAME) can be used to specify the fully qualified class name of the ObjectNameEncoder that will be returned by this class. If this property is not defined, or there is problem with the specified class, an instance of ObjectNameEncoderAccessor.DefaultObjectNameEncoder will be returned.

    Note: The ObjectNameEncoder defined by the caplin.jmx.encoder system property must have a no argument constructor.

    • Field Detail

      • OBJECT_NAME_ENCODER_CLASS_PROPERTY_NAME

        public static final java.lang.String OBJECT_NAME_ENCODER_CLASS_PROPERTY_NAME

        The name of the system property that must be used to specify the fully qualified class name of the ObjectNameEncoder that should be used to encode ObjectName values. This has the value caplin.jmx.encoder.

        See Also:
        Constant Field Values
    • Method Detail

      • getObjectNameEncoder

        public static ObjectNameEncoder getObjectNameEncoder()

        Gets the ObjectNameEncoder the should be used to encode and decode ObjectName values.

        Returns:
        The ObjectNameEncoder.