gnu.CORBA.Poa

Class ORB_1_4

Known Direct Subclasses:
OrbFocused

public class ORB_1_4
extends OrbFunctional

The ORB, supporting POAs that are the feature of jdk 1.4.

Nested Class Summary

Nested classes/interfaces inherited from class gnu.CORBA.OrbFunctional

OrbFunctional.portServer, OrbFunctional.sharedPortServer

Field Summary

gnuPoaCurrent
currents
Maps the active threads to the invocation data ("POA Current's").
gnuDynAnyFactory
factory
Creates dynamic anys.
gnuIcCurrent
ic_current
Maps the active threads to the interceptor data ("Interceptor Current's").
gnuPOA
rootPOA
The root POA.

Fields inherited from class gnu.CORBA.OrbFunctional

AFTER_RECEIVING, DEFAULT_INITIAL_PORT, LISTEN_ON, LOCAL_HOST, NAME_SERVICE, NS_HOST, NS_PORT, ORB_ID, RANDOM_PORT_ATTEMPTS, RANDOM_PORT_FROM, RANDOM_PORT_TO, REFERENCE, SERVER_ERROR_PAUSE, SERVER_ID, START_READING_MESSAGE, TANDEM_REQUESTS, TOUT_AFTER_RECEIVING, TOUT_START_READING_MESSAGE, TOUT_WHILE_READING, TWAIT_SERVER_ERROR_PAUSE, WHILE_READING, asynchron, connected_objects, freed_ports, identities, initial_references, max_version, orb_id, portServers, running, server_id, socketFactory

Fields inherited from class gnu.CORBA.OrbRestricted

Singleton, factories, iClient, iIor, iServer, icSlotSize, policyFactories

Constructor Summary

ORB_1_4()
Calls the parent constructor and additionally puts the "RootPOA", "RootPOAManager", "POACurrent" and "DynAnyFactory" into initial references.

Method Summary

protected IOR
createIOR(Connected_objects.cObject ref)
Create IOR and allow registered interceptors to add additional components.
Policy
create_policy(int type, Any value)
Create policy using the previously registered factory.
void
destroy()
Destroy all poas and then call the superclass method.
String
object_to_string(Object forObject)
If the super method detects that the object is not connected to this ORB, try to find and activate the object.
protected void
registerInterceptors(Properties properties, String[] args)
Do interceptor registration.
void
set_delegate(Object wrapper)
This method is called by RMI-IIOP javax.rmi.Tie.orb(ORB), passing this as parameter.
protected void
set_parameters(Applet app, Properties props)
Set the parameters and then register interceptors.
protected void
set_parameters(String[] para, Properties props)
Set the parameters and then register interceptors.

Methods inherited from class gnu.CORBA.OrbFunctional

connect, connect, connect_1_thread, countConnectedObjects, createIOR, destroy, disconnect, ensureRunning, finalize, find_connected_object, find_local_object, getDefaultNameService, getFreePort, getLocalIor, getMaxVersion, get_next_response, identityDestroyed, ior_to_object, list_initial_services, object_to_string, poll_next_response, prepareObject, resolve_initial_references, run, send_multiple_requests_deferred, send_multiple_requests_oneway, setMaxVersion, setPort, set_parameters, set_parameters, shutdown, startService, string_to_object, useProperties

Methods inherited from class gnu.CORBA.OrbRestricted

create_alias_tc, create_any, create_array_tc, create_context_list, create_enum_tc, create_environment, create_exception_list, create_exception_tc, create_interface_tc, create_list, create_named_value, create_output_stream, create_recursive_sequence_tc, create_sequence_tc, create_string_tc, create_struct_tc, create_union_tc, create_wstring_tc, destroy, get_default_context, get_next_response, get_primitive_tc, list_initial_services, lookup_value_factory, object_to_string, poll_next_response, register_value_factory, resolve_initial_references, run, send_multiple_requests_deferred, send_multiple_requests_oneway, set_parameters, set_parameters, shutdown, string_to_object, unregister_value_factory

Methods inherited from class org.omg.CORBA_2_3.ORB

get_value_def, lookup_value_factory, register_value_factory, set_delegate, unregister_value_factory

Methods inherited from class org.omg.CORBA.ORB

connect, create_abstract_interface_tc, create_alias_tc, create_any, create_array_tc, create_basic_dyn_any, create_context_list, create_dyn_any, create_dyn_array, create_dyn_enum, create_dyn_sequence, create_dyn_struct, create_dyn_union, create_enum_tc, create_environment, create_exception_list, create_exception_tc, create_fixed_tc, create_interface_tc, create_list, create_named_value, create_native_tc, create_operation_list, create_output_stream, create_policy, create_recursive_sequence_tc, create_recursive_tc, create_sequence_tc, create_string_tc, create_struct_tc, create_union_tc, create_value_box_tc, create_value_tc, create_wstring_tc, destroy, disconnect, get_current, get_default_context, get_next_response, get_primitive_tc, get_service_information, init, init, init, list_initial_services, object_to_string, perform_work, poll_next_response, resolve_initial_references, run, send_multiple_requests_deferred, send_multiple_requests_oneway, set_parameters, set_parameters, shutdown, string_to_object, work_pending

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Details

currents

public gnuPoaCurrent currents
Maps the active threads to the invocation data ("POA Current's").

factory

public gnuDynAnyFactory factory
Creates dynamic anys.

ic_current

public gnuIcCurrent ic_current
Maps the active threads to the interceptor data ("Interceptor Current's").

rootPOA

public final gnuPOA rootPOA
The root POA.

Constructor Details

ORB_1_4

public ORB_1_4()
Calls the parent constructor and additionally puts the "RootPOA", "RootPOAManager", "POACurrent" and "DynAnyFactory" into initial references.

Method Details

createIOR

protected IOR createIOR(Connected_objects.cObject ref)
            throws BAD_OPERATION
Create IOR and allow registered interceptors to add additional components.
Overrides:
createIOR in interface OrbFunctional

create_policy

public Policy create_policy(int type,
                            Any value)
            throws PolicyError
Create policy using the previously registered factory.
Overrides:
create_policy in interface ORB

destroy

public void destroy()
Destroy all poas and then call the superclass method.
Overrides:
destroy in interface OrbFunctional

object_to_string

public String object_to_string(Object forObject)
If the super method detects that the object is not connected to this ORB, try to find and activate the object.
Overrides:
object_to_string in interface OrbFunctional

registerInterceptors

protected void registerInterceptors(Properties properties,
                                    String[] args)
Do interceptor registration.
Parameters:
properties - the properties, between those names the agreed prefix "org.omg.PortableInterceptor.ORBInitializerClass." is searched.
args - the string array, passed to the ORB.init

set_delegate

public void set_delegate(Object wrapper)
This method is called by RMI-IIOP javax.rmi.Tie.orb(ORB), passing this as parameter. The ORB will try to connect that tie as one of its objects, if it is not already connected. If the wrapper is an instance of Servant this method also activates the root poa (if not already active).
Overrides:
set_delegate in interface ORB

set_parameters

protected void set_parameters(Applet app,
                              Properties props)
Set the parameters and then register interceptors.
Overrides:
set_parameters in interface OrbFunctional

set_parameters

protected void set_parameters(String[] para,
                              Properties props)
Set the parameters and then register interceptors.
Overrides:
set_parameters in interface OrbFunctional

ORB_1_4.java -- Copyright (C) 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; see the file COPYING. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.