|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.omg.PortableServer.Servant
org.omg.CosNaming.NamingContextExtPOA
org.apache.yoko.orb.CosNaming.NamingContextBase
org.apache.yoko.orb.CosNaming.tnaming.TransientNamingContext
public class TransientNamingContext
Nested Class Summary | |
---|---|
class |
TransientNamingContext.BoundObject
Internal class used to store bound objects in the HashMap. |
class |
TransientNamingContext.TransientBindingIterator
Context implementation version of the BindingIterator object used to return list items. |
Field Summary | |
---|---|
protected HashMap |
bindings
|
protected Object |
rootContext
|
Fields inherited from class org.apache.yoko.orb.CosNaming.NamingContextBase |
---|
logger, nonEscaped, orb, poa |
Constructor Summary | |
---|---|
TransientNamingContext(ORB orb,
POA poa)
Create a top-level naming context. |
|
TransientNamingContext(ORB orb,
POA poa,
Object root)
Construct a TransientNamingContext subcontext. |
Method Summary | |
---|---|
protected void |
bindObject(NameComponent n,
Object obj,
BindingTypeHolder type)
Bind an object into the current context. |
void |
destroy()
Destroy a context. |
Object |
getRootContext()
Retrieve the rootContext for this NamingContext. |
void |
list(int how_many,
BindingListHolder bl,
BindingIteratorHolder bi)
Create a list of bound objects an contexts contained within this context. |
NamingContext |
new_context()
Create a new context of the same type as the calling context. |
protected Object |
resolveObject(NameComponent n,
BindingTypeHolder type)
Resolve an object in this context (single level resolution). |
protected Object |
unbindObject(NameComponent n)
Unbind an object from the current context. |
Methods inherited from class org.apache.yoko.orb.CosNaming.NamingContextBase |
---|
bind_context, bind_new_context, bind, debug, encodeRFC2396Name, escapeName, extractSubName, isDebugEnabled, logNameComponent, nameToString, rebind_context, rebind, resolve_str, resolve, resolveContext, to_name, to_string, to_url, unbind, validateName |
Methods inherited from class org.omg.CosNaming.NamingContextExtPOA |
---|
_all_interfaces, _invoke, _this, _this |
Methods inherited from class org.omg.PortableServer.Servant |
---|
_default_POA, _get_delegate, _get_interface_def, _get_interface, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected HashMap bindings
protected Object rootContext
Constructor Detail |
---|
public TransientNamingContext(ORB orb, POA poa) throws Exception
orb
- The orb hosting this context.poa
- The POA used to activate the object.
Exception
public TransientNamingContext(ORB orb, POA poa, Object root) throws Exception
orb
- The orb this context is associated with.poa
- The POA the root context is activated under.root
- The root context.
Exception
Method Detail |
---|
public NamingContext new_context() throws SystemException
new_context
in interface NamingContextOperations
new_context
in class NamingContextBase
NotFound
SystemException
public void destroy() throws NotEmpty
destroy
in interface NamingContextOperations
destroy
in class NamingContextBase
NotEmpty
public void list(int how_many, BindingListHolder bl, BindingIteratorHolder bi) throws SystemException
list
in interface NamingContextOperations
list
in class NamingContextBase
how_many
- The count of elements to return as a BindingList.bl
- A holder element for returning the source binding list.bi
- A holder for returning a BindingIterator. Any extra
elements not returned in the BindingList are returned
in the BindingIterator.
SystemException
protected Object resolveObject(NameComponent n, BindingTypeHolder type) throws SystemException
resolveObject
in class NamingContextBase
n
- The name of the target object.type
- A type holder for returning the bound object type
information.
SystemException
protected void bindObject(NameComponent n, Object obj, BindingTypeHolder type) throws SystemException
bindObject
in class NamingContextBase
n
- The single-level name of the target object.obj
- The object or context to be bound.type
-
SystemException
protected Object unbindObject(NameComponent n) throws SystemException
unbindObject
in class NamingContextBase
n
- The name of the target object (single level).
SystemException
public Object getRootContext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |