1 /*
   2  * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 /**
  27  * Defines the {@linkplain javax.management.remote.rmi RMI connector}
  28  * for the Java Management Extensions (JMX) Remote API.
  29  *
  30  * <dl style="font-family:'DejaVu Sans', Arial, Helvetica, sans serif">
  31  * <dt class="simpleTagLabel">Providers:</dt>
  32  * <dd>This module provides
  33  * {@link javax.management.remote.JMXConnectorProvider} service
  34  * that creates the JMX connector clients using RMI protocol.
  35  * Instances of {@code JMXConnector} can be obtained via the
  36  * {@link javax.management.remote.JMXConnectorFactory#newJMXConnector
  37  * JMXConnectorFactory.newJMXConnector} factory method.
  38  * It also provides {@link javax.management.remote.JMXConnectorServerProvider} service
  39  * that creates the JMX connector servers using RMI protocol.
  40  * Instances of {@code JMXConnectorServer} can be obtained via the
  41  * {@link javax.management.remote.JMXConnectorServerFactory#newJMXConnectorServer
  42  * JMXConnectorServerFactory.newJMXConnectorServer} factory method.
  43  * </dd>
  44  * </dl>
  45  *
  46  * @provides javax.management.remote.JMXConnectorProvider
  47  * @provides javax.management.remote.JMXConnectorServerProvider
  48  *
  49  * @moduleGraph
  50  * @since 9
  51  */
  52 module java.management.rmi {
  53 
  54     requires transitive java.management;
  55     requires transitive java.rmi;
  56     requires java.naming;
  57 
  58     exports javax.management.remote.rmi;
  59 
  60     // The qualified export below is required to preserve backward
  61     // compatibility for the legacy case where an ordered list
  62     // of package prefixes can be specified to the factory.
  63     exports com.sun.jmx.remote.protocol.rmi to java.management;
  64 
  65     // jdk.management.agent needs to create an RMIExporter instance.
  66     exports com.sun.jmx.remote.internal.rmi to jdk.management.agent;
  67 
  68     // The java.management.rmi module provides implementations
  69     // of the JMXConnectorProvider and JMXConnectorServerProvider
  70     // services supporting the RMI protocol.
  71     provides javax.management.remote.JMXConnectorProvider
  72         with com.sun.jmx.remote.protocol.rmi.ClientProvider;
  73     provides javax.management.remote.JMXConnectorServerProvider
  74         with com.sun.jmx.remote.protocol.rmi.ServerProvider;
  75 
  76 }