jdk/src/java.management.rmi/share/classes/module-info.java
author mli
Thu, 09 Feb 2017 18:33:28 -0800
changeset 43710 8fa2058eb740
parent 43503 bc7f8619ab70
child 44417 a431edba1629
permissions -rw-r--r--
8173957: Fix @since in module-info.java in dev/jdk repo Reviewed-by: alanb, lancea

/*
 * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 *
 * This code is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2 only, as
 * published by the Free Software Foundation.  Oracle designates this
 * particular file as subject to the "Classpath" exception as provided
 * by Oracle in the LICENSE file that accompanied this code.
 *
 * This code 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 General Public License
 * version 2 for more details (a copy is included in the LICENSE file that
 * accompanied this code).
 *
 * You should have received a copy of the GNU General Public License version
 * 2 along with this work; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 *
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
 * or visit www.oracle.com if you need additional information or have any
 * questions.
 */

/**
 * Defines the RMI Connector for the Java Management Extensions (JMX) Remote API.
 * <P>
 * The {@linkplain javax.management.remote.rmi RMI connector} is a connector
 * for the JMX Remote API that uses RMI to transmit client requests to a remote
 * MBean server.
 *
 * @provides javax.management.remote.JMXConnectorProvider
 *           A provider of {@code JMXConnector} for the RMI protocol.<br>
 *           Instances of {@code JMXConnector} using the RMI protocol
 *           are usually created by the {@link
 *           javax.management.remote.JMXConnectorFactory} which will locate
 *           and load the appropriate {@code JMXConnectorProvider} service
 *           implementation for the given protocol.
 *
 * @provides javax.management.remote.JMXConnectorServerProvider
 *           A provider of {@code JMXConnectorServer} for the RMI protocol.<br>
 *           Instances of {@code JMXConnectorServer} using the RMI protocol
 *           are usually created by the {@link
 *           javax.management.remote.JMXConnectorServerFactory} which will locate
 *           and load the appropriate {@code JMXConnectorServerProvider} service
 *           implementation for the given protocol.
 *
 * @since 9
 */
module java.management.rmi {

    requires transitive java.management;
    requires transitive java.rmi;
    requires java.naming;

    exports javax.management.remote.rmi;

    // The qualified export below is required to preserve backward
    // compatibility for the legacy case where an ordered list
    // of package prefixes can be specified to the factory.
    exports com.sun.jmx.remote.protocol.rmi to java.management;

    // jdk.management.agent needs to create an RMIExporter instance.
    exports com.sun.jmx.remote.internal.rmi to jdk.management.agent;

    // The java.management.rmi module provides implementations
    // of the JMXConnectorProvider and JMXConnectorServerProvider
    // services supporting the RMI protocol.
    provides javax.management.remote.JMXConnectorProvider
        with com.sun.jmx.remote.protocol.rmi.ClientProvider;
    provides javax.management.remote.JMXConnectorServerProvider
        with com.sun.jmx.remote.protocol.rmi.ServerProvider;

}