org.jacorb.orb

Class ORBSingleton

public class ORBSingleton extends ORB

Version: $Id: ORBSingleton.java,v 1.50 2006/09/10 09:53:19 andre.spiegel Exp $

Author: Gerald Brose, FU Berlin

Constructor Summary
protected ORBSingleton(boolean isSingleton)
in case a singleton orb is created the c'tor will access the JacORB configuration to configure the orb. otherwise configure needs to be called to properly set up the created instance.
ORBSingleton()
Method Summary
protected voidconfigure(Configuration configuration)
TypeCodecreate_abstract_interface_tc(String id, String name)
TypeCodecreate_alias_tc(String id, String name, TypeCode original_type)
Anycreate_any()
TypeCodecreate_array_tc(int length, TypeCode element_type)
ContextListcreate_context_list()
TypeCodecreate_enum_tc(String id, String name, String[] members)
Environmentcreate_environment()
ExceptionListcreate_exception_list()
TypeCodecreate_exception_tc(String id, String name, StructMember[] members)
TypeCodecreate_fixed_tc(short digits, short scale)
TypeCodecreate_interface_tc(String id, String name)
NVListcreate_list(int count)
TypeCodecreate_local_interface_tc(String id, String name)
NamedValuecreate_named_value(String name, Any value, int flags)
TypeCodecreate_native_tc(String id, String name)
NVListcreate_operation_list(OperationDef oper)
NVListcreate_operation_list(Object obj)
OutputStreamcreate_output_stream()
TypeCodecreate_recursive_tc(String id)
TypeCodecreate_sequence_tc(int bound, TypeCode element_type)
TypeCodecreate_string_tc(int bound)
TypeCodecreate_struct_tc(String id, String name, StructMember[] members)
TypeCodecreate_union_tc(String id, String name, TypeCode discriminator_type, UnionMember[] members)
TypeCodecreate_value_box_tc(String id, String name, TypeCode boxed_type)
TypeCodecreate_value_tc(String id, String name, short type_modifier, TypeCode concrete_base, ValueMember[] members)
TypeCodecreate_wstring_tc(int bound)
LoggergetLogger()
Returns the logger of this singleton ORB.
Currentget_current()
Contextget_default_context()
Requestget_next_response()
TypeCodeget_primitive_tc(TCKind tcKind)
protected static booleanlegalNameChar(int ch)
Determine if a character is ok for the middle of an id.
protected static booleanlegalStartChar(int character)
Determine if a character is ok to start an id.
String[]list_initial_services()
Stringobject_to_string(Object obj)
voidperform_work()
booleanpoll_next_response()
Objectresolve_initial_references(String identifier)
voidrun()
voidsend_multiple_requests_deferred(Request[] req)
voidsend_multiple_requests_oneway(Request[] req)
protected voidset_parameters(String[] args, Properties props)
protected voidset_parameters(Applet app, Properties props)
voidshutdown(boolean wait_for_completion)
Objectstring_to_object(String str)
booleanwork_pending()

Constructor Detail

ORBSingleton

protected ORBSingleton(boolean isSingleton)
in case a singleton orb is created the c'tor will access the JacORB configuration to configure the orb. otherwise configure needs to be called to properly set up the created instance.

Parameters: isSingleton determine if a singleton orb is created.

ORBSingleton

public ORBSingleton()

Method Detail

configure

protected void configure(Configuration configuration)

create_abstract_interface_tc

public TypeCode create_abstract_interface_tc(String id, String name)

create_alias_tc

public TypeCode create_alias_tc(String id, String name, TypeCode original_type)

create_any

public Any create_any()

create_array_tc

public TypeCode create_array_tc(int length, TypeCode element_type)

create_context_list

public ContextList create_context_list()

create_enum_tc

public TypeCode create_enum_tc(String id, String name, String[] members)

create_environment

public Environment create_environment()

create_exception_list

public ExceptionList create_exception_list()

create_exception_tc

public TypeCode create_exception_tc(String id, String name, StructMember[] members)

create_fixed_tc

public TypeCode create_fixed_tc(short digits, short scale)

create_interface_tc

public TypeCode create_interface_tc(String id, String name)

create_list

public NVList create_list(int count)

create_local_interface_tc

public TypeCode create_local_interface_tc(String id, String name)

create_named_value

public NamedValue create_named_value(String name, Any value, int flags)

create_native_tc

public TypeCode create_native_tc(String id, String name)

create_operation_list

public NVList create_operation_list(OperationDef oper)

create_operation_list

public NVList create_operation_list(Object obj)

create_output_stream

public OutputStream create_output_stream()

create_recursive_tc

public TypeCode create_recursive_tc(String id)

create_sequence_tc

public TypeCode create_sequence_tc(int bound, TypeCode element_type)

create_string_tc

public TypeCode create_string_tc(int bound)

create_struct_tc

public TypeCode create_struct_tc(String id, String name, StructMember[] members)

create_union_tc

public TypeCode create_union_tc(String id, String name, TypeCode discriminator_type, UnionMember[] members)

create_value_box_tc

public TypeCode create_value_box_tc(String id, String name, TypeCode boxed_type)

create_value_tc

public TypeCode create_value_tc(String id, String name, short type_modifier, TypeCode concrete_base, ValueMember[] members)

create_wstring_tc

public TypeCode create_wstring_tc(int bound)

getLogger

public Logger getLogger()
Returns the logger of this singleton ORB. Used for testing.

get_current

public Current get_current()

get_default_context

public Context get_default_context()

get_next_response

public Request get_next_response()

get_primitive_tc

public TypeCode get_primitive_tc(TCKind tcKind)

legalNameChar

protected static final boolean legalNameChar(int ch)
Determine if a character is ok for the middle of an id.

Parameters: ch the character in question.

legalStartChar

protected static final boolean legalStartChar(int character)
Determine if a character is ok to start an id. (Note that '_' is allowed here - it might have been inserted by the IDL compiler to avoid clashes with reserved Java identifiers )

Parameters: character the character in question.

list_initial_services

public String[] list_initial_services()

object_to_string

public String object_to_string(Object obj)

perform_work

public void perform_work()

poll_next_response

public boolean poll_next_response()

resolve_initial_references

public Object resolve_initial_references(String identifier)

run

public void run()

send_multiple_requests_deferred

public void send_multiple_requests_deferred(Request[] req)

send_multiple_requests_oneway

public void send_multiple_requests_oneway(Request[] req)

set_parameters

protected void set_parameters(String[] args, Properties props)

set_parameters

protected void set_parameters(Applet app, Properties props)

shutdown

public void shutdown(boolean wait_for_completion)

string_to_object

public Object string_to_object(String str)

work_pending

public boolean work_pending()