/* JFox, the OpenSource J2EE Application Server
 *
 * Copyright (C) 2002 huihoo.com
 * Distributable under GNU LGPL license
 * See the GNU Lesser General Public License for more details.
 */

package org.jfox.mx;

import java.util.Properties;

/**
 * 每个可以被 MxServer 管理的对象需要实现的接口
 * 被管理的方法:
 * 1、以 mx_ 开头
 * 2、方法名不要重复
 *
 * @author <a href="mailto:young_yy@hotmail.com">Young Yang</a>
 */

public interface Mxable {
  /**
   * 得到要管理的方法的描述信息
   *  methodName => description
   * @return
   */
  public Properties getOperationDescriptions();

  /**
   * 得到被管理的对象的直接引用
   * @return
   */
  public Object getSource();

  /**
   * 得到对这个 MX bean 的描述
   * @return
   */
  public String getMxDescription();

}