KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mx4j > MX4JSystemKeys


1 /*
2  * Copyright (C) MX4J.
3  * All rights reserved.
4  *
5  * This software is distributed under the terms of the MX4J License version 1.0.
6  * See the terms of the MX4J License in the documentation provided with this software.
7  */

8
9 package mx4j;
10
11 /**
12  * This class holds the system property keys that the MX4J implementation uses to plugin
13  * custom components. <br>
14  * The naming convention is that, for a defined constant, the corrispondent system property
15  * is obtained by converting the constant name to lowercase and by replacing the underscores
16  * with dots so that, for example, the constant <code>MX4J_MBEANSERVER_CLASSLOADER_REPOSITORY</code>
17  * correspond to the system property key <code>mx4j.mbeanserver.classloader.repository</code>
18  *
19  * @author <a HREF="mailto:biorn_steedom@users.sourceforge.net">Simone Bordet</a>
20  * @version $Revision: 1.5 $
21  */

22 public final class MX4JSystemKeys
23 {
24    /**
25     * Specifies a full qualified class name of a class implementing the {@link mx4j.server.MBeanRepository}
26     * interface, that will be used by the MBeanServer to store information about registered MBeans.
27     */

28    public static final String JavaDoc MX4J_MBEANSERVER_REPOSITORY = "mx4j.mbeanserver.repository";
29
30    /**
31     * Specifies a full qualified class name of a class extending the {@link mx4j.server.ModifiableClassLoaderRepository}
32     * class, that will be used by the MBeanServer to store ClassLoader MBeans that wants to be registered in
33     * the MBeanServer's ClassLoaderRepository.
34     */

35    public static final String JavaDoc MX4J_MBEANSERVER_CLASSLOADER_REPOSITORY = "mx4j.mbeanserver.classloader.repository";
36
37    /**
38     * Specifies the level of logging performed by the MX4J JMX implementation.
39     * Possible value are (case insensitive), from most verbose to least verbose:
40     * <ul>
41     * <li>trace</li>
42     * <li>debug</li>
43     * <li>info</li>
44     * <li>warn</li>
45     * <li>error</li>
46     * <li>fatal</li>
47     * </ul>
48     */

49    public static final String JavaDoc MX4J_LOG_PRIORITY = "mx4j.log.priority";
50
51    /**
52     * Specifies a full qualified class name of a class extending the {@link mx4j.log.Logger} class, that
53     * will be used as prototype for new loggers created.
54     */

55    public static final String JavaDoc MX4J_LOG_PROTOTYPE = "mx4j.log.prototype";
56
57    /**
58     * When this property is set to false (as specified by {@link Boolean#valueOf(String)}), the MX4J
59     * JMX implementation will accept as MBean interfaces of standard MBeans also interfaces defined in
60     * different packages or as nested classes of the MBean class.
61     * So for example, will be possible for a com.foo.Service to have a management interface called
62     * com.bar.ServiceMBean.
63     * If not defined, or if set to true, only MBean interfaces of the same package of the MBean class
64     * are considered valid management interfaces.
65     */

66    public static final String JavaDoc MX4J_STRICT_MBEAN_INTERFACE = "mx4j.strict.mbean.interface";
67
68    /**
69     * Specifies a full qualified class name of a class implementing the {@link mx4j.server.MBeanInvoker} interface,
70     * that will be used as invoker for standard MBeans.
71     * Two classes are provided by the MX4J JMX implementation: {@link mx4j.server.BCELMBeanInvoker} and
72     * {@link mx4j.server.CachingReflectionMBeanInvoker}.
73     * The first one will use BCEL classes (if present) to speed up invocations on standard MBeans, while the second
74     * uses reflection.
75     * If, for any reason, the BCEL invocation fails, then the reflected invoker is used.
76     */

77    public static final String JavaDoc MX4J_MBEAN_INVOKER = "mx4j.mbean.invoker";
78
79    /**
80     * Specifies if the {@link javax.management.ObjectName} class should cache ObjectName instances.
81     * This property is 'true' by default.
82     * ObjectName caching can be disabled by setting this property to 'false', to reduce memory footprint
83     * in case of use of large numbers of ObjectNames.
84     */

85    public static final String JavaDoc MX4J_OBJECTNAME_CACHING = "mx4j.objectname.caching";
86
87    /**
88     * Specifies a full qualified name of a class implementing the {@link mx4j.server.MBeanMetaData} interface,
89     * that is used internally by MX4J to store information about the MBean.
90     * @see mx4j.server.MBeanMetaData.Factory
91     */

92    public static final String JavaDoc MX4J_MBEAN_METADATA = "mx4j.mbean.metadata";
93 }
94
Popular Tags