MBeanServer.java :  » UML » MetaBoss » com » metaboss » enterprise » management » Java Open Source

Java Open Source » UML » MetaBoss 
MetaBoss » com » metaboss » enterprise » management » MBeanServer.java
// THIS SOFTWARE IS PROVIDED BY SOFTARIS PTY.LTD. AND OTHER METABOSS
// CONTRIBUTORS ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING,
// BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SOFTARIS PTY.LTD.
// OR OTHER METABOSS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
// OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
// EVEN IF SOFTARIS PTY.LTD. OR OTHER METABOSS CONTRIBUTORS ARE ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
//
// Copyright 2000-2005  Softaris Pty.Ltd. All Rights Reserved.
package com.metaboss.enterprise.management;

/** This interface is a representative for the javax.management.MBeanServer object. It only
 * contains the COMPONENT_URL for use when application code wants to acess javax.management.MBeanServer
 * (eg. in order to add or remove MBean without worrying about the make and model of the JMX and the name of the MBean server)
 * This mechanism (similarly to JTA and JDBC access mechanism) is here to separate MetaBoss generated code from
 * actual platform specifics and delegate the decision on which MBean server to use and how to obtain it to the 
 * deployment SPI libraries. To access MBeanServer object in platform independent way :
 * <p><code><pre>
 *     import javax.naming.Context;
 *     import javax.naming.InitialContext;
 *     import javax.management.MBeanServer;
 *     ...............................  
 *     ...............................  
 *     Context lContext = new javax.naming.InitialContext();
 *     MBeanServer lMBeanServer = (MBeanServer)lContext.lookup(com.metaboss.enterprise.management.MBeanServer.COMPONENT_URL);
 * </pre></code></p>
 */
public interface MBeanServer extends javax.management.MBeanServer
{
    /** Naming URL of the factory component */
    public static final String COMPONENT_URL = "component:/com.metaboss.enterprise.management.MBeanServer";
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.