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 RMI Connector for the Java Management Extensions (JMX) Remote API. 28 * <P> 29 * The {@linkplain javax.management.remote.rmi RMI connector} is a connector 30 * for the JMX Remote API that uses RMI to transmit client requests to a remote 31 * MBean server. 32 * 33 * @provides javax.management.remote.JMXConnectorProvider 34 * A provider of {@code JMXConnector} for the RMI protocol.<br> 35 * Instances of {@code JMXConnector} using the RMI protocol 36 * are usually created by the {@link 37 * javax.management.remote.JMXConnectorFactory} which will locate 38 * and load the appropriate {@code JMXConnectorProvider} service 39 * implementation for the given protocol. 40 * 41 * @provides javax.management.remote.JMXConnectorServerProvider 42 * A provider of {@code JMXConnectorServer} for the RMI protocol.<br> 43 * Instances of {@code JMXConnectorServer} using the RMI protocol 44 * are usually created by the {@link 45 * javax.management.remote.JMXConnectorServerFactory} which will locate 46 * and load the appropriate {@code JMXConnectorServerProvider} service 47 * implementation for the given protocol. 48 * 49 * @since 9 50 */ 51 module java.management.rmi { 52 53 requires transitive java.management; 54 requires transitive java.rmi; 55 requires java.naming; 56 57 exports javax.management.remote.rmi; 58 59 // The qualified export below is required to preserve backward 60 // compatibility for the legacy case where an ordered list 61 // of package prefixes can be specified to the factory. 62 exports com.sun.jmx.remote.protocol.rmi to java.management; 63 64 // jdk.management.agent needs to create an RMIExporter instance. 65 exports com.sun.jmx.remote.internal.rmi to jdk.management.agent; 66 67 // The java.management.rmi module provides implementations 68 // of the JMXConnectorProvider and JMXConnectorServerProvider 69 // services supporting the RMI protocol. 70 provides javax.management.remote.JMXConnectorProvider 71 with com.sun.jmx.remote.protocol.rmi.ClientProvider; 72 provides javax.management.remote.JMXConnectorServerProvider 73 with com.sun.jmx.remote.protocol.rmi.ServerProvider; 74 75 }