ServiceInformation.java revision 704:3ef63dbde965
118334Speter/*
218334Speter * Copyright (c) 1998, 2001, Oracle and/or its affiliates. All rights reserved.
318334Speter * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
418334Speter *
518334Speter * This code is free software; you can redistribute it and/or modify it
618334Speter * under the terms of the GNU General Public License version 2 only, as
718334Speter * published by the Free Software Foundation.  Oracle designates this
818334Speter * particular file as subject to the "Classpath" exception as provided
918334Speter * by Oracle in the LICENSE file that accompanied this code.
1018334Speter *
1118334Speter * This code is distributed in the hope that it will be useful, but WITHOUT
1218334Speter * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1318334Speter * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1418334Speter * version 2 for more details (a copy is included in the LICENSE file that
1518334Speter * accompanied this code).
1618334Speter *
1718334Speter * You should have received a copy of the GNU General Public License version
1818334Speter * 2 along with this work; if not, write to the Free Software Foundation,
1918334Speter * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2018334Speter *
2118334Speter * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2218334Speter * or visit www.oracle.com if you need additional information or have any
2318334Speter * questions.
2418334Speter */
2518334Speter
2618334Speterpackage org.omg.CORBA;
2718334Speter
2818334Speter
2918334Speter/**
3018334Speter *  An IDL struct in the CORBA module that
3118334Speter *  stores information about a CORBA service available in the
3218334Speter *  ORB implementation and is obtained from the {@code ORB.get_service_information}
3318334Speter *  method.
3418334Speter */
3518334Speterpublic final class ServiceInformation implements org.omg.CORBA.portable.IDLEntity
3618334Speter{
3718334Speter    /** Array of ints representing service options.
3818334Speter    */
3918334Speter    public int[] service_options;
4018334Speter
4118334Speter    /** Array of ServiceDetails giving more details about the service.
4218334Speter    */
4318334Speter    public org.omg.CORBA.ServiceDetail[] service_details;
4418334Speter
4518334Speter    /** Constructs a ServiceInformation object with empty service_options
4618334Speter    * and service_details.
4718334Speter    */
4818334Speter    public ServiceInformation() { }
4918334Speter
5018334Speter    /** Constructs a ServiceInformation object with the given service_options
5118334Speter    * and service_details.
5218334Speter    * @param __service_options An array of ints describing the service options.
5318334Speter    * @param __service_details An array of ServiceDetails describing the service
5418334Speter    * details.
5518334Speter    */
5618334Speter    public ServiceInformation(int[] __service_options,
5718334Speter                              org.omg.CORBA.ServiceDetail[] __service_details)
5818334Speter    {
5918334Speter        service_options = __service_options;
6018334Speter        service_details = __service_details;
6118334Speter    }
6218334Speter}
6318334Speter