bitronix.tm.utils
Class ManagementRegistrar

java.lang.Object
  extended by bitronix.tm.utils.ManagementRegistrar

public class ManagementRegistrar
extends java.lang.Object

Simple JMX facade. In case there is no JMX implementation available, calling methods of this class have no effect.

© Bitronix Software

Author:
lorban

Constructor Summary
ManagementRegistrar()
           
 
Method Summary
static java.lang.String makeValidName(java.lang.String name)
          Replace characters considered illegal in a management object's name.
static void register(java.lang.String name, java.lang.Object obj)
          Register the specified management object.
static void unregister(java.lang.String name)
          Unregister the management object with the specified name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManagementRegistrar

public ManagementRegistrar()
Method Detail

makeValidName

public static java.lang.String makeValidName(java.lang.String name)
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

public static void register(java.lang.String name,
                            java.lang.Object obj)
Register the specified management object.

Parameters:
name - the name of the object.
obj - the management object.

unregister

public static void unregister(java.lang.String name)
Unregister the management object with the specified name.

Parameters:
name - the name of the object.