1. /*
  2. * @(#)ServiceName.java 1.114 03/12/19
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package com.sun.jmx.defaults;
  8. import java.security.AccessController;
  9. import java.security.PrivilegedAction;
  10. /**
  11. * Used for storing default values used by JMX services.
  12. *
  13. * @since 1.5
  14. */
  15. public class ServiceName {
  16. // private constructor defined to "hide" the default public constructor
  17. private ServiceName() {
  18. }
  19. /**
  20. * The object name of the MBeanServer delegate object
  21. * <BR>
  22. * The value is <CODE>JMImplementation:type=MBeanServerDelegate</CODE>.
  23. */
  24. public static final String DELEGATE =
  25. "JMImplementation:type=MBeanServerDelegate" ;
  26. /**
  27. * The default key properties for registering the class loader of the
  28. * MLet service.
  29. * <BR>
  30. * The value is <CODE>type=MLet</CODE>.
  31. */
  32. public static final String MLET = "type=MLet";
  33. /**
  34. * The default domain.
  35. * <BR>
  36. * The value is <CODE>DefaultDomain</CODE>.
  37. */
  38. public static final String DOMAIN = "DefaultDomain";
  39. /**
  40. * The name of the JMX specification implemented by this product.
  41. * <BR>
  42. * The value is <CODE>Java Management Extensions</CODE>.
  43. */
  44. public static final String JMX_SPEC_NAME = "Java Management Extensions";
  45. /**
  46. * The version of the JMX specification implemented by this product.
  47. * <BR>
  48. * The value is <CODE>1.0 Final Release</CODE>.
  49. */
  50. public static final String JMX_SPEC_VERSION = "1.2 Maintenance Release";
  51. /**
  52. * The vendor of the JMX specification implemented by this product.
  53. * <BR>
  54. * The value is <CODE>Sun Microsystems</CODE>.
  55. */
  56. public static final String JMX_SPEC_VENDOR = "Sun Microsystems";
  57. /**
  58. * The name of this product implementing the JMX specification.
  59. * <BR>
  60. * The value is <CODE>JMX</CODE>.
  61. */
  62. public static final String JMX_IMPL_NAME = "JMX";
  63. /**
  64. * The name of the vendor of this product implementing the
  65. * JMX specification.
  66. * <BR>
  67. * The value is <CODE>Sun Microsystems</CODE>.
  68. */
  69. public static final String JMX_IMPL_VENDOR = "Sun Microsystems";
  70. /**
  71. * The version of this implementation of the JMX specification.
  72. * <BR>
  73. * For example, with a JMX implementation as part of the
  74. * Java Runtime Environment, this property has the same value as
  75. * the <tt>java.runtime.version</tt> system property.
  76. */
  77. public static final String JMX_IMPL_VERSION = (String)
  78. AccessController.doPrivileged(new PrivilegedAction() {
  79. public Object run() {
  80. return System.getProperty("java.runtime.version");
  81. }
  82. });
  83. }