src/share/classes/org/omg/PortableServer/POAPackage/package.html

Wed, 27 Apr 2016 01:21:28 +0800

author
aoqi
date
Wed, 27 Apr 2016 01:21:28 +0800
changeset 0
7ef37b2cdcad
child 748
6845b95cba6b
permissions
-rw-r--r--

Initial load
http://hg.openjdk.java.net/jdk8u/jdk8u/corba/
changeset: 765:f46df0af2ca8
tag: jdk8u25-b17

aoqi@0 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
aoqi@0 2 <html>
aoqi@0 3 <head>
aoqi@0 4 <!--
aoqi@0 5
aoqi@0 6 Copyright (c) 2001, 2006, Oracle and/or its affiliates. All rights reserved.
aoqi@0 7 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
aoqi@0 8
aoqi@0 9 This code is free software; you can redistribute it and/or modify it
aoqi@0 10 under the terms of the GNU General Public License version 2 only, as
aoqi@0 11 published by the Free Software Foundation. Oracle designates this
aoqi@0 12 particular file as subject to the "Classpath" exception as provided
aoqi@0 13 by Oracle in the LICENSE file that accompanied this code.
aoqi@0 14
aoqi@0 15 This code is distributed in the hope that it will be useful, but WITHOUT
aoqi@0 16 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
aoqi@0 17 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
aoqi@0 18 version 2 for more details (a copy is included in the LICENSE file that
aoqi@0 19 accompanied this code).
aoqi@0 20
aoqi@0 21 You should have received a copy of the GNU General Public License version
aoqi@0 22 2 along with this work; if not, write to the Free Software Foundation,
aoqi@0 23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
aoqi@0 24
aoqi@0 25 Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
aoqi@0 26 or visit www.oracle.com if you need additional information or have any
aoqi@0 27 questions.
aoqi@0 28
aoqi@0 29
aoqi@0 30 -->
aoqi@0 31
aoqi@0 32 </head>
aoqi@0 33 <body bgcolor="white">
aoqi@0 34
aoqi@0 35 <P>Allows programmers to construct object implementations that are portable
aoqi@0 36 between different ORB products.
aoqi@0 37
aoqi@0 38 <P>The Portable Object Adaptor (POA) is designed to meet the following goals:
aoqi@0 39 <P>
aoqi@0 40 <UL>
aoqi@0 41 <LI>Allow programmers to construct object implementations that are portable between different ORB products.
aoqi@0 42 <LI>Provide support for objects with persistent identities.
aoqi@0 43 <LI>Provide support for transparent activation of objects.
aoqi@0 44 <LI>Allow a single servant to support multiple object identities simultaneously.
aoqi@0 45 </UL>
aoqi@0 46
aoqi@0 47
aoqi@0 48
aoqi@0 49 <P>Given an interface <tt>My</tt> defined in <tt>My.idl</tt>, the file <tt>MyPOA.java</tt> is generated by the <tt>idlj</tt> compiler. You must provide the implementation for <tt>My</tt> and it must inherit from <tt>MyPOA</tt>.
aoqi@0 50
aoqi@0 51 <P><TT>MyPOA.java</TT> is a stream-based skeleton that extends <tt>org.omg.PortableServer.Servant</tt> and implements the <tt>InvokeHandler</tt> interface and the operations interface associated with the IDL interface the skeleton implements.
aoqi@0 52
aoqi@0 53 <P>The <TT>PortableServer</TT> module for the Portable Object Adapter (POA) defines the native <tt>Servant</tt> type. In the Java programming language, the <tt>Servant</tt> type is mapped to the Java <TT>org.omg.PortableServer.Servant</TT> class. It serves as the base class for all POA servant implementations and provides a number of methods that may
aoqi@0 54 be invoked by the application programmer, as well as methods which are invoked by the POA itself and may be overridden by the user to control aspects of servant behavior.
aoqi@0 55
aoqi@0 56
aoqi@0 57
aoqi@0 58 <P>All Mapping corresponds to the Chapter 11 of
aoqi@0 59 CORBA V2.3.1 specified by OMG document formal/99-10-07.pdf.
aoqi@0 60 The exception to this is the <code>id</code> attribute, which is added in ptc/00-08-06,
aoqi@0 61 section 11.3.8.26.
aoqi@0 62
aoqi@0 63 <H3>Package Specification</H3>
aoqi@0 64
aoqi@0 65 <P>For a precise list of supported sections of official specifications with which
aoqi@0 66 the Java[tm] Platform, Standard Edition 6, ORB complies, see <A
aoqi@0 67 HREF="../../CORBA/doc-files/compliance.html">Official Specifications for CORBA
aoqi@0 68 support in Java[tm] SE 6</A>.
aoqi@0 69 <p>
aoqi@0 70 @since 1.4
aoqi@0 71 <br>
aoqi@0 72 @serial exclude
aoqi@0 73 </body>
aoqi@0 74 </html>

mercurial