Name
Context
Synopsis
Context
objects contain a list of properties, stored as NamedValue
objects, that are passed along with method requests to indicate
properties of the client context. Every ORB has a default context,
accessed using the ORB.get_default_context()
method. Contexts
can be
linked in a hierarchy of contexts. If a search for a property is made
on a Context
object and the search within the object fails, then the
search is continued in the parent Context
, and so on until the root
context is reached. You can create a new child of a Context
using its
create_child()
method. Other methods on the Context
class let you get,
set and delete values from the Context
.
public abstract class Context { // Public Constructors public Context(); // Public Instance Methods public abstract String context_name(); public abstract org.omg.CORBA.Context create_child( String child_ctx_name); public abstract void delete_values( String propname); public abstract NVList get_values(String start_scope, int op_flags, String pattern); public abstract org.omg.CORBA.Context parent(); public abstract void set_one_value(String propname, Any propvalue); public abstract void set_values( NVList values); }
Passed To
LocalObject._create_request()
, org.omg.CORBA.Object._create_request()
, Request.ctx()
, org.omg.CORBA.portable.Delegate.create_request()
, org.omg.CORBA.portable.ObjectImpl._create_request()
, org.omg.CORBA.portable.OutputStream.write_Context()
Returned By
org.omg.CORBA.Context.{create_child()
, parent()} ...
Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.