bitronix.tm.utils
Class ManagementRegistrar

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

public final class ManagementRegistrar
extends Object

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

Author:
lorban

Method Summary
static String makeValidName(String name)
          Replace characters considered illegal in a management object's name.
static void register(String name, Object obj)
          Register the specified management object.
static void unregister(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
 

Method Detail

makeValidName

public static String makeValidName(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(String name,
                            Object obj)
Register the specified management object.

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

unregister

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

Parameters:
name - the name of the object.


Copyright © 2006-2013 Bitronix Software. All Rights Reserved.