001 /*
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements. See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License. You may obtain a copy of the License at
008 *
009 * http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017 package org.apache.servicemix.jbi.management;
018
019 import java.beans.PropertyChangeListener;
020
021 import javax.management.JMException;
022 import javax.management.MBeanAttributeInfo;
023 import javax.management.MBeanOperationInfo;
024
025 /**
026 * An object to be managed can implement this class
027 * to provide more meta infomation for the MBeanInfo
028 *
029 * @version $Revision: 564607 $
030 */
031 public interface MBeanInfoProvider {
032
033 /**
034 * Get an array of MBeanAttributeInfo
035 * @return array of AttributeInfos
036 * @throws JMException
037 */
038 MBeanAttributeInfo[] getAttributeInfos() throws JMException;
039
040 /**
041 * Get an array of MBeanOperationInfo
042 * @return array of OperationInfos
043 * @throws JMException
044 */
045 MBeanOperationInfo[] getOperationInfos() throws JMException;
046
047 /**
048 * Get the Object to Manage
049 * @return the Object to Manage
050 */
051 Object getObjectToManage();
052
053 /**
054 * Get the name of the item
055 * @return the name
056 */
057 String getName();
058
059 /**
060 * Get the type of this mbean
061 * @return the type
062 */
063 String getType();
064
065 /**
066 * Get the type of this mbean
067 * @return the type
068 */
069 String getSubType();
070
071 /**
072 * Get the Description of the item
073 * @return the description
074 */
075 String getDescription();
076
077 /**
078 * Register for propertyChange events
079 * @param l
080 */
081 void setPropertyChangeListener(PropertyChangeListener l);
082
083 }