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 * The {@code java.management.rmi} module provides an implementation 35 * of the {@code JMXConnectorProvider} service for the RMI protocol.<br> 36 * JMX API connector clients using the RMI protocol are usually 37 * created by the {@link 38 * javax.management.remote.JMXConnectorFactory} which will locate 39 * and load the appropriate {@code JMXConnectorProvider} service 40 * implementation for the given protocol. 41 * 42 * @provides javax.management.remote.JMXConnectorServerProvider 43 * The {@code java.management.rmi} module provides an implementation 44 * of the {@code JMXConnectorServerProvider} service for the RMI 45 * protocol.<br> 46 * JMX API connector servers using the RMI protocol are usually 47 * created by the {@link 48 * javax.management.remote.JMXConnectorServerFactory} which will locate 49 * and load the appropriate {@code JMXConnectorServerProvider} service 50 * implementation for the given protocol. 51 * 52 */ 53 module java.management.rmi { 54 55 requires transitive java.management; 56 requires transitive java.rmi; 57 requires java.naming; 58 59 exports javax.management.remote.rmi; 60 61 // The qualified export below is required to preserve backward 62 // compatibility for the legacy case where an ordered list 63 // of package prefixes can be specified to the factory. 64 exports com.sun.jmx.remote.protocol.rmi to java.management; 65 66 // jdk.management.agent needs to create an RMIExporter instance. 67 exports com.sun.jmx.remote.internal.rmi to jdk.management.agent; 68 69 // The java.management.rmi module provides implementations 70 // of the JMXConnectorProvider and JMXConnectorServerProvider 71 // services supporting the RMI protocol. 72 provides javax.management.remote.JMXConnectorProvider 73 with com.sun.jmx.remote.protocol.rmi.ClientProvider; 74 provides javax.management.remote.JMXConnectorServerProvider 75 with com.sun.jmx.remote.protocol.rmi.ServerProvider; 76 77 }