Class ObjectNameEncoderAccessor
- java.lang.Object
-
- com.caplin.management.jmx.encoder.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 decodeObjectName
values. To get the encoder, thegetObjectNameEncoder()
method should be invoked.It is vital that both the server and the client are configured to use the same
ObjectNameEncoder
. Thecaplin.jmx.encoder
system property (seeOBJECT_NAME_ENCODER_CLASS_PROPERTY_NAME
) can be used to specify the fully qualified class name of theObjectNameEncoder
that will be returned by this class. If this property is not defined, or there is problem with the specified class, an instance ofObjectNameEncoderAccessor.DefaultObjectNameEncoder
will be returned.Note: The
ObjectNameEncoder
defined by thecaplin.jmx.encoder
system property must have a no argument constructor.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ObjectNameEncoderAccessor.DefaultObjectNameEncoder
StandardObjectNameEncoder
that will be used if theOBJECT_NAME_ENCODER_CLASS_PROPERTY_NAME
system property is not set, or if there is a problem with the specified class.
-
Field Summary
Fields Modifier and Type Field Description static 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 theObjectNameEncoder
that should be used to encodeObjectName
values.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ObjectNameEncoder
getObjectNameEncoder()
Gets theObjectNameEncoder
the should be used to encode and decodeObjectName
values.
-
-
-
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 encodeObjectName
values. This has the valuecaplin.jmx.encoder
.- See Also:
- Constant Field Values
-
-
Method Detail
-
getObjectNameEncoder
public static ObjectNameEncoder getObjectNameEncoder()
Gets the
ObjectNameEncoder
the should be used to encode and decodeObjectName
values.- Returns:
- The
ObjectNameEncoder
.
-
-