_getObject
public Object _getObject(ParsedIOR pior)
This version of _getObject is used for references that have
arrived over the network and is called from CDRInputStream. It
removes stale cache entries
addObjectKey
public void addObjectKey(String key_name,
String full_path)
addObjectKey
is a proprietary method that allows the
internal objectKeyMap to be altered programmatically. The objectKeyMap
allows more readable corbaloc URLs by mapping the actual object key to
an arbitary string. See the jacorb.properties file for more information.
key_name
- a String
value e.g. NameServicefull_path
- an String
value e.g. file:/home/rnc/NameSingleton.ior
addRequest
public void addRequest(Request req)
configure
public void configure(Configuration myConfiguration)
throws ConfigurationException
configure the ORB
- configure in interface ORBSingleton
create_named_value
public NamedValue create_named_value(String name,
Any value,
int flags)
- create_named_value in interface ORBSingleton
create_policy
public Policy create_policy(int type,
Any value)
throws PolicyError
This method creates a policy with the given type and the given
value.
- create_policy in interface ORB
type
- The policies type.value
- The policies value.
PolicyError
- There is no PolicyFactory for the
given type or the policy creation failed.
PolicyFactory
destroy
public void destroy()
- destroy in interface ORB
getApplet
public Applet getApplet()
getBasicAdapter
public BasicAdapter getBasicAdapter()
used from the POA
- the basic adapter used by this ORB instance
getBoxedValueHelper
public BoxedValueHelper getBoxedValueHelper(String repId)
Returns a BoxedValueHelper for the type specified by repId, or
null if no such BoxedValueHelper can be found. This method uses an
internal cache of BoxedValueHelpers so that each class needs only
be looked up once.
repId
- the repository id of the type for which a BoxedValueHelper
should be returned. It is assumed that repId is the repository id of a
boxed value type. Otherwise, the result will be null.
- an instance of the BoxedValueHelper class that corresponds
to repId.
getConfiguration
public org.jacorb.config.Configuration getConfiguration()
Some parts of JacORB cannot be elegantly configured from the outside
and need access to the ORB's configuration retrieve config settings.
This method should only be used in those restricted cases!
getInterceptorManager
public InterceptorManager getInterceptorManager()
Get the InterceptorManager, if present.
- the InterceptorManager, or null, if none is present.
getPOACurrent
public Current getPOACurrent()
getPOACurrent
getReference
public Object getReference(POA poa,
byte[] object_key,
String rep_id,
boolean _transient)
called by POA to create an IOR
poa
- the calling POAobject_key
- rep_id
- _transient
- is the new reference transient or persistent
- a new CORBA Object reference
get_default_context
public Context get_default_context()
- get_default_context in interface ORBSingleton
get_service_information
public boolean get_service_information(short service_type,
ServiceInformationHolder service_information)
- get_service_information in interface ORB
get_value_def
public Object get_value_def(String repid)
throws BAD_PARAM
always return a ValueDef or throw BAD_PARAM if not repid of a value
- get_value_def in interface ORB
hasClientRequestInterceptors
public boolean hasClientRequestInterceptors()
Test, if the ORB has ClientRequestInterceptors
Called by Delegate.
hasPolicyFactoryForType
public boolean hasPolicyFactoryForType(int type)
Tests if a policy factory is present for the given type.
hasRequestInterceptors
public boolean hasRequestInterceptors()
Test, if the ORB has client or server side interceptors.
hasServerRequestInterceptors
public boolean hasServerRequestInterceptors()
Test, if the ORB has ServerRequestInterceptors
Called by poa.RequestProcessor.
id
public String id()
Overrides id() in org.omg.CORBA_2_5.ORB
- id in interface ORB
isApplet
public boolean isApplet()
- - true if ORB is initialized by an applet and
appligator use is switched on
list_initial_services
public String[] list_initial_services()
- list_initial_services in interface ORBSingleton
lookup_value_factory
public ValueFactory lookup_value_factory(String id)
- lookup_value_factory in interface ORB
mapObjectKey
public byte[] mapObjectKey(byte[] originalKey)
Map an object key to another, as defined by the value
of a corresponding configuration property in the properties
file, e.g. map "NameService" to "StandardNS/NameServer-POA/_root"
originalKey
- a byte[]
value containing the original
key.
- a
byte[]
value containing the mapped key, if a
mapping is defined, originalKey otherwise.
object_to_string
public String object_to_string(Object obj)
- object_to_string in interface ORBSingleton
perform_work
public void perform_work()
- perform_work in interface ORBSingleton
poaCreated
public void poaCreated(POA poa)
An operation from the POAListener interface. Whenever a new POA is
created, the ORB is notified.
- poaCreated in interface POAListener
poll_next_response
public boolean poll_next_response()
- poll_next_response in interface ORBSingleton
register_initial_reference
public void register_initial_reference(String id,
Object obj)
throws InvalidName
Register a reference, that will be returned on subsequent calls
to resove_initial_references(id).
The references "RootPOA", "POACurrent" and "PICurrent" can be set,
but will not be resolved with the passed in references.
Overrides register_initial_reference() in org.omg.CORBA_2_5.ORB
- register_initial_reference in interface ORB
id
- The references human-readable id, e.g. "MyService".obj
- The objects reference.
InvalidName
- A reference with id has already been registered.
register_value_factory
public ValueFactory register_value_factory(String id,
ValueFactory factory)
- register_value_factory in interface ORB
removeRequest
public void removeRequest(Request req)
resolve_initial_references
public Object resolve_initial_references(String identifier)
throws InvalidName
resolve_initial_references
- resolve_initial_references in interface ORBSingleton
send_multiple_requests_deferred
public void send_multiple_requests_deferred(Request req)
- send_multiple_requests_deferred in interface ORBSingleton
send_multiple_requests_oneway
public void send_multiple_requests_oneway(Request req)
- send_multiple_requests_oneway in interface ORBSingleton
set_delegate
public void set_delegate(java.lang.Object wrapper)
called by org.jacorb.poa.RequestProcessor
- set_delegate in interface ORB
set_parameters
protected void set_parameters(String[] args,
java.util.Properties props)
called from ORB.init(), entry point for initialization.
- set_parameters in interface ORBSingleton
set_parameters
protected void set_parameters(java.applet.Applet app,
java.util.Properties props)
Initialization method, called from within the super class
org.omg.CORBA.ORB
- set_parameters in interface ORBSingleton
shutdown
public void shutdown(boolean wait_for_completion)
- shutdown in interface ORBSingleton
string_to_object
public Object string_to_object(String str)
- string_to_object in interface ORBSingleton
turnOnBiDirGIOP
public void turnOnBiDirGIOP()
unregister_value_factory
public void unregister_value_factory(String id)
- unregister_value_factory in interface ORB
useBiDirGIOP
public boolean useBiDirGIOP()
useProxy
public void useProxy()
forces the use of a proxy (by using a dummy applet)
work_pending
public boolean work_pending()
- work_pending in interface ORBSingleton