All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.mx.metadata.MetaDataBuilder Maven / Gradle / Ivy

There is a newer version: 6.0.0.M1
Show newest version
/*
 * JBoss, Home of Professional Open Source.
 * Copyright 2008, Red Hat Middleware LLC, and individual contributors
 * as indicated by the @author tags. See the copyright.txt file in the
 * distribution for a full listing of individual contributors.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
 */
package org.jboss.mx.metadata;

import javax.management.MBeanInfo;
import javax.management.NotCompliantMBeanException;

/**
 * The MetaDataBuilder interface defines the contract between the
 * Model MBean and a metadata builder implementation. The metadata builder
 * implementations can extract the MBean management interface definition from
 * a given data source and construct the corresponding JMX MBeanInfo object
 * instances that define the Model MBean. 

* * This interface also defines accessor methods for setting properties which * can be used to configure the builder implementations. See * {@link #setProperty} and {@link #getProperty} methods for more information. * * @see org.jboss.mx.metadata.AbstractBuilder * * @author Juha Lindfors. * @version $Revision: 81026 $ */ public interface MetaDataBuilder { /** * Constructs the Model MBean metadata. * * @return initialized MBean info * @throws NotCompliantMBeanException if there were errors building the * MBean info from the given data source */ public MBeanInfo build() throws NotCompliantMBeanException; /** * Sets a property that can be used to control the behaviour of the builder * implementation. * * @param key unique string key for a property * @param value property value */ public void setProperty(String key, Object value); /** * Returns an existing property for this builder implementation. * * @param key property key string * * @return property value */ public Object getProperty(String key); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy