Class COM.ibm.dsom.services.CosNaming.NamingContextStub
All Packages Class Hierarchy This Package Previous Next Index
Class COM.ibm.dsom.services.CosNaming.NamingContextStub
java.lang.Object
|
+----sunw.orb.RemoteObjectImpl
|
+----sunw.corba.ObjectImpl
|
+----COM.ibm.dsom.services.CosNaming.NamingContextStub
- public class NamingContextStub
- extends ObjectImpl
- implements NamingContextRef
-
NamingContextStub()
-
-
NamingContextStub(Representation)
-
-
__classInterfaceName()
-
-
__interfaceName()
-
-
bind(NameComponent[], ObjectRef)
- The bind operation creates a binding of a name and an object in
the target naming context.
-
bind_context(NameComponent[], NamingContextRef)
- The bind_context operation binds a naming context to the name.
-
bind_new_context(NameComponent[])
- The bind_new_context operation creates a name naming context
and binds it to the name supplied as the argument.
-
createRef()
-
-
createRef(Representation)
-
-
destroy()
- The destroy operation destroys the naming context.
-
duplicate()
-
-
getInterfaceRepositoryIdentifier()
-
-
getRepositoryIdentifier()
-
-
isA(ObjectRef)
-
-
list(int, BindingListHolder, BindingIteratorHolder)
- The list operation returns at most "how_many" number of bindings
in bl.
-
narrow(ObjectRef)
-
-
new_context()
- The new_context operation returns a new naming context in the
same process as the context on which the operation was invoked.
-
rebind(NameComponent[], ObjectRef)
- The rebind operation creates a binding of the name and an object
even if the name is already bound in the context.
-
rebind_context(NameComponent[], NamingContextRef)
- The rebind_context operation creates a binding between a name
and a naming context in the target naming context even if the name is
already bound in the context.
-
resolve(NameComponent[])
- The resolve operation retrieves an object bound to a name
in the context.
-
unbind(NameComponent[])
- The unbind operation removes a name binding from a context.
NamingContextStub
protected NamingContextStub()
NamingContextStub
protected NamingContextStub(Representation src)
bind
public void bind(NameComponent n[],
ObjectRef obj) throws SystemException, NotFound, CannotProceed, InvalidName, AlreadyBound
- The bind operation creates a binding of a name and an object in
the target naming context. Naming Contexts that are
bound using bind do not participate in name resolution
when compound name resolution is done.
- Parameters:
- n - The NameComponent[] which contains the name of the context to bind.
- obj - The object reference to be rebound.
- Returns:
- none.
rebind
public void rebind(NameComponent n[],
ObjectRef obj) throws SystemException, NotFound, CannotProceed, InvalidName
- The rebind operation creates a binding of the name and an object
even if the name is already bound in the context. Naming
contexts that are bound using rebind do not participate
in name resolution process when compound names are
passed to be resolved.
- Parameters:
- n - The NameComponent[] which contains the name of the context to bind.
- obj - The object reference to be rebound.
- Returns:
- none.
bind_context
public void bind_context(NameComponent n[],
NamingContextRef nc) throws SystemException, NotFound, CannotProceed, InvalidName, AlreadyBound
- The bind_context operation binds a naming context to the name.
Naming contexts that are bound using bind_context participate in
name resolution when compound names are resolved.
- Parameters:
- n - The NameComponent[] which contains the name of the context to bind.
- nc - The naming context to be bound.
- Returns:
- none.
rebind_context
public void rebind_context(NameComponent n[],
NamingContextRef nc) throws SystemException, NotFound, CannotProceed, InvalidName
- The rebind_context operation creates a binding between a name
and a naming context in the target naming context even if the name is
already bound in the context. Naming contexts that are bound using
rebind_context participate in name resolution when compound names
are resolved.
- Parameters:
- n - The NameComponent[] which contains the name of the context to bind.
- nc - The naming context to be rebound.
- Returns:
- none.
resolve
public ObjectRef resolve(NameComponent n[]) throws SystemException, NotFound, CannotProceed, InvalidName
- The resolve operation retrieves an object bound to a name
in the context. Since names can be compound, name resolution can
traverse multiple naming contexts.
- Parameters:
- n - The NameComponent[] which contains the name of
the context that contains the object to be resolved.
- Returns:
- An ObjectRef is returned. This reference will need to be narrow'ed to
the object's actual type.
unbind
public void unbind(NameComponent n[]) throws SystemException, NotFound, CannotProceed, InvalidName
- The unbind operation removes a name binding from a context.
- Parameters:
- n - The NameComponent[] which contains the name of the context to bind.
- Returns:
- none.
new_context
public NamingContextRef new_context() throws SystemException
- The new_context operation returns a new naming context in the
same process as the context on which the operation was invoked.
The new context is not bound to any name.
- Returns:
- The new naming context reference.
bind_new_context
public NamingContextRef bind_new_context(NameComponent n[]) throws SystemException, NotFound, CannotProceed, InvalidName, AlreadyBound
- The bind_new_context operation creates a name naming context
and binds it to the name supplied as the argument.
The naming context is created in the same process as
the context on which the bind_new_context was invoked.
- Parameters:
- n - The NameComponent[] which contains the name of the context to bind.
- Returns:
- The new naming context reference.
destroy
public void destroy() throws SystemException, NotEmpty
- The destroy operation destroys the naming context.
If the naming context has bindings, a NotEmpty exception is raised.
It is the responsibilty of the caller to make sure that there
are no refernces to this naming context.
- Returns:
- none
list
public void list(int how_many,
BindingListHolder bl,
BindingIteratorHolder bi) throws SystemException
- The list operation returns at most "how_many" number of bindings
in bl. If the naming context contains additional bindings, a
BindingIterator is returned. If the naming context
does not contain additional bindings, the binding
iterator is a "nil" object reference
- Parameters:
- how_many - The number of bindings requested.
- bl - The list where the bindings will be placed.
- Returns:
- none
__interfaceName
public InterfaceNameDescriptor __interfaceName()
- Overrides:
- __interfaceName in class RemoteObjectImpl
__classInterfaceName
public static InterfaceNameDescriptor __classInterfaceName()
getInterfaceRepositoryIdentifier
public static String getInterfaceRepositoryIdentifier()
getRepositoryIdentifier
public String getRepositoryIdentifier()
isA
public static boolean isA(ObjectRef that) throws SystemException
- See Also:
- isA
createRef
public static NamingContextRef createRef()
createRef
public static NamingContextRef createRef(Representation src)
duplicate
public ObjectRef duplicate() throws SystemException
- See Also:
- duplicate
narrow
public static NamingContextRef narrow(ObjectRef that) throws NarrowCoercionException, SystemException
All Packages Class Hierarchy This Package Previous Next Index