This class implements so-called Singleton ORB, a highly restricted version
that cannot communicate over network. This ORB is provided for the
potentially malicious applets with heavy security restrictions. It, however,
supports some basic features that might be needed even when the network
access is not granted.
This ORB can only create typecodes,
Any
,
ContextList
,
NVList
and
OutputStream
that writes to
an internal buffer.
All other methods throw the
NO_IMPLEMENT
exception.
create_recursive_sequence_tc
public TypeCode create_recursive_sequence_tc(int bound,
int offset)
It is easier and clearler to use a combination of
create_recursive_tc and create_sequence_tc instead.
Create a typecode, representing a tree-like structure.
This structure contains a member that is a sequence of the same type,
as the structure itself. You can imagine as if the folder definition
contains a variable-length array of the enclosed (nested) folder
definitions. In this way, it is possible to have a tree like
structure that can be transferred via CORBA CDR stream.
- create_recursive_sequence_tc in interface ORB
bound
- the maximal expected number of the nested components
on each node; 0 if not limited.offset
- the position of the field in the returned structure
that contains the sequence of the structures of the same field.
The members before this field are intialised using parameterless
StructMember constructor.
- a typecode, defining a stucture, where a member at the
offset
position defines an array of the identical
structures.
destroy
public void destroy()
Destroy the interceptors, if they are present.
- destroy in interface ORB
get_default_context
public Context get_default_context()
Get the default context of this ORB. This is an initial root of all
contexts.
The default method returns a new context with the empty name and
no parent context.
- get_default_context in interface ORB
- the default context of this ORB.
lookup_value_factory
public ValueFactory lookup_value_factory(String repository_id)
Look for the value factory for the value, having the given repository id.
The implementation checks for the registered value factories first. If none
found, it tries to load and instantiate the class, mathing the given naming
convention. If this faild, null is returned.
- lookup_value_factory in interface ORB
repository_id
- a repository id.
- a found value factory, null if none.
run
public void run()
Shutdown the ORB server.
For RestrictedORB, returns witout action.
- run in interface ORB
shutdown
public void shutdown(boolean wait_for_completion)
Shutdown the ORB server.
For RestrictedORB, returns witout action.
- shutdown in interface ORB
RestrictedORB.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.