|
|||||||||
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.tuscany.sca.host.corba.naming.NamingContextBase
org.apache.tuscany.sca.host.corba.naming.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 java.util.HashMap |
bindings
|
protected org.omg.CORBA.Object |
rootContext
|
Fields inherited from class org.apache.tuscany.sca.host.corba.naming.NamingContextBase |
---|
logger, nonEscaped, orb, poa |
Constructor Summary | |
---|---|
TransientNamingContext(org.omg.CORBA.ORB orb,
org.omg.PortableServer.POA poa)
Create a top-level naming context. |
|
TransientNamingContext(org.omg.CORBA.ORB orb,
org.omg.PortableServer.POA poa,
org.omg.CORBA.Object root)
Construct a TransientNamingContext subcontext. |
Method Summary | |
---|---|
protected void |
bindObject(org.omg.CosNaming.NameComponent n,
org.omg.CORBA.Object obj,
org.omg.CosNaming.BindingTypeHolder type)
Bind an object into the current context. |
void |
destroy()
Destroy a context. |
org.omg.CORBA.Object |
getRootContext()
Retrieve the rootContext for this NamingContext. |
void |
list(int how_many,
org.omg.CosNaming.BindingListHolder bl,
org.omg.CosNaming.BindingIteratorHolder bi)
Create a list of bound objects an contexts contained within this context. |
org.omg.CosNaming.NamingContext |
new_context()
Create a new context of the same type as the calling context. |
protected org.omg.CORBA.Object |
resolveObject(org.omg.CosNaming.NameComponent n,
org.omg.CosNaming.BindingTypeHolder type)
Resolve an object in this context (single level resolution). |
protected org.omg.CORBA.Object |
unbindObject(org.omg.CosNaming.NameComponent n)
Unbind an object from the current context. |
Methods inherited from class org.apache.tuscany.sca.host.corba.naming.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, _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 java.util.HashMap bindings
protected org.omg.CORBA.Object rootContext
Constructor Detail |
---|
public TransientNamingContext(org.omg.CORBA.ORB orb, org.omg.PortableServer.POA poa) throws java.lang.Exception
orb
- The orb hosting this context.poa
- The POA used to activate the object.
java.lang.Exception
public TransientNamingContext(org.omg.CORBA.ORB orb, org.omg.PortableServer.POA poa, org.omg.CORBA.Object root) throws java.lang.Exception
orb
- The orb this context is associated with.poa
- The POA the root context is activated under.root
- The root context.
java.lang.Exception
Method Detail |
---|
public org.omg.CosNaming.NamingContext new_context() throws org.omg.CORBA.SystemException
new_context
in interface org.omg.CosNaming.NamingContextOperations
new_context
in class NamingContextBase
org.omg.CosNaming.NamingContextPackage.NotFound
org.omg.CORBA.SystemException
public void destroy() throws org.omg.CosNaming.NamingContextPackage.NotEmpty
destroy
in interface org.omg.CosNaming.NamingContextOperations
destroy
in class NamingContextBase
org.omg.CosNaming.NamingContextPackage.NotEmpty
public void list(int how_many, org.omg.CosNaming.BindingListHolder bl, org.omg.CosNaming.BindingIteratorHolder bi) throws org.omg.CORBA.SystemException
list
in interface org.omg.CosNaming.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.
org.omg.CORBA.SystemException
protected org.omg.CORBA.Object resolveObject(org.omg.CosNaming.NameComponent n, org.omg.CosNaming.BindingTypeHolder type) throws org.omg.CORBA.SystemException
resolveObject
in class NamingContextBase
n
- The name of the target object.type
- A type holder for returning the bound object type
information.
org.omg.CORBA.SystemException
protected void bindObject(org.omg.CosNaming.NameComponent n, org.omg.CORBA.Object obj, org.omg.CosNaming.BindingTypeHolder type) throws org.omg.CORBA.SystemException
bindObject
in class NamingContextBase
n
- The single-level name of the target object.obj
- The object or context to be bound.type
-
org.omg.CORBA.SystemException
protected org.omg.CORBA.Object unbindObject(org.omg.CosNaming.NameComponent n) throws org.omg.CORBA.SystemException
unbindObject
in class NamingContextBase
n
- The name of the target object (single level).
org.omg.CORBA.SystemException
public org.omg.CORBA.Object getRootContext()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |