Package bitronix.tm.utils
Class ManagementRegistrar
java.lang.Object
bitronix.tm.utils.ManagementRegistrar
Simple JMX facade. In case JMX is disabled, calling methods of this class have no effect.
- Author:
- lorban
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringmakeValidName(String name) Replace characters considered illegal in a management object's name.static voidRegister the specified management object.static voidunregister(String name) Unregister the management object with the specified name.
-
Method Details
-
makeValidName
Replace characters considered illegal in a management object's name.- Parameters:
name- the name to work on.- Returns:
- a fully valid name where all invalid characters have been replaced with '_'.
-
register
Register the specified management object.- Parameters:
name- the name of the object.obj- the management object.
-
unregister
Unregister the management object with the specified name.- Parameters:
name- the name of the object.
-