java.lang.Object | |
↳ | com.sun.jndi.cosnaming.CNCtx |
Provides a bridge to the CosNaming server provided by JavaIDL. This class provides the InitialContext from CosNaming.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
_nc |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds to the environment for the current context.
| |||||||||||
Converts the "Name" name into a NameComponent[] object and
performs the bind operation.
| |||||||||||
Converts the "String" name into a CompositeName object and
performs the bind operation.
| |||||||||||
Closes this context.
| |||||||||||
Composes the name of this context with a name relative to
this context.
| |||||||||||
Composes the name of this context with a name relative to
this context.
| |||||||||||
Uses the callBindNewContext convenience function to create a new
context.
| |||||||||||
Uses the callBindNewContext convenience function to create a new
context.
| |||||||||||
This method is used by the iiop and iiopname URL Context factories.
| |||||||||||
Uses the callDestroy function to destroy the context.
| |||||||||||
Uses the callDestroy function to destroy the context.
| |||||||||||
Returns the current environment.
| |||||||||||
Retrieves the full name of this context within its own namespace.
| |||||||||||
Allow access to the name parser object.
| |||||||||||
Allow access to the name parser object.
| |||||||||||
Returns a NameClassEnumeration object which has a list of name
class pairs.
| |||||||||||
Returns a NameClassEnumeration object which has a list of name
class pairs.
| |||||||||||
Returns a BindingEnumeration object which has a list of name
class pairs.
| |||||||||||
Returns a BindingEnumeration object which has a list of name
object pairs.
| |||||||||||
Converts the "String" name into a CompositeName
returns the object resolved by the COS Naming api,
resolve.
| |||||||||||
Converts the "Name" name into a NameComponent[] object and
returns the object resolved by the COS Naming api,
resolve.
| |||||||||||
Is mapped to resolve in the COS Naming api.
| |||||||||||
Is mapped to resolve in the COS Naming api.
| |||||||||||
Converts the "String" name into a CompositeName object and
performs the rebind operation.
| |||||||||||
Converts the "Name" name into a NameComponent[] object and
performs the rebind operation.
| |||||||||||
Removes an environment property from the environment of this
context.
| |||||||||||
Renames an object.
| |||||||||||
Renames an object.
| |||||||||||
Converts the "Name" name into a NameComponent[] object and
performs the unbind operation.
| |||||||||||
Converts the "String" name into a CompositeName object and
performs the unbind operation.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Adds to the environment for the current context. Record change but do not reinitialize ORB.
propName | The property name. |
---|---|
propValue | the value of the property to add; may not be null |
NamingException |
---|
Converts the "Name" name into a NameComponent[] object and performs the bind operation. Uses callBindOrRebind. Throws an invalid name exception if the name is empty. We need a name to bind the object even when we work within the current context.
name | JNDI Name object |
---|---|
obj | Object to be bound. |
NamingException | See callBindOrRebind |
---|
Converts the "String" name into a CompositeName object and performs the bind operation. Uses callBindOrRebind. Throws an invalid name exception if the name is empty.
name | string |
---|---|
obj | Object to be bound. |
NamingException | See callBindOrRebind |
---|
Closes this context. This method releases this context's resources immediately, instead of waiting for them to be released automatically by the garbage collector.
This method is idempotent: invoking it on a context that has already been closed has no effect. Invoking any other method on a closed context is not allowed, and results in undefined behaviour.
NamingException |
---|
Composes the name of this context with a name relative to
this context.
See composeName(Name, Name)
for details.
name | a name relative to this context |
---|---|
prefix | the name of this context relative to one of its ancestors |
prefix
and name
NamingException |
---|
Composes the name of this context with a name relative to
this context.
Given a name (name
) relative to this context, and
the name (prefix
) of this context relative to one
of its ancestors, this method returns the composition of the
two names using the syntax appropriate for the naming
system(s) involved. That is, if name
names an
object relative to this context, the result is the name of the
same object, but relative to the ancestor context. None of the
names may be null.
For example, if this context is named "wiz.com" relative to the initial context, then
composeName("east", "wiz.com")might return
"east.wiz.com"
.
If instead this context is named "org/research", then
composeName("user/jane", "org/research")might return
"org/research/user/jane"
while
composeName("user/jane", "research")returns
"research/user/jane"
.name | a name relative to this context |
---|---|
prefix | the name of this context relative to one of its ancestors |
prefix
and name
NamingException |
---|
Uses the callBindNewContext convenience function to create a new context. Throws an invalid name exception if the name is empty.
name | string |
---|
NamingException | See callBindNewContext |
---|
Uses the callBindNewContext convenience function to create a new context. Throws an invalid name exception if the name is empty.
name | string |
---|
NamingException | See callBindNewContext |
---|
This method is used by the iiop and iiopname URL Context factories.
NamingException |
---|
Uses the callDestroy function to destroy the context. Destroys the current context if name is empty.
name | JNDI Name |
---|
OperationNotSupportedException | when list is invoked with a non-null argument |
---|---|
NamingException |
Uses the callDestroy function to destroy the context. If name is empty destroys the current context.
name | string |
---|
OperationNotSupportedException | when list is invoked with a non-null argument |
---|---|
NamingException |
Retrieves the full name of this context within its own namespace.
Many naming services have a notion of a "full name" for objects in their respective namespaces. For example, an LDAP entry has a distinguished name, and a DNS record has a fully qualified name. This method allows the client application to retrieve this name. The string returned by this method is not a JNDI composite name and should not be passed directly to context methods. In naming systems for which the notion of full name does not make sense, OperationNotSupportedException is thrown.
NamingException |
---|
Allow access to the name parser object.
name | the name of the context from which to get the parser |
---|
NamingException | -- |
---|
Allow access to the name parser object.
name | the name of the context from which to get the parser |
---|
NamingException | -- |
---|
Returns a NameClassEnumeration object which has a list of name class pairs. Lists the current context if the name is empty.
name | string |
---|
NamingException | All exceptions thrown by lookup with a non-null argument |
---|
Returns a NameClassEnumeration object which has a list of name class pairs. Lists the current context if the name is empty.
name | JNDI Name |
---|
NamingException | All exceptions thrown by lookup |
---|
Returns a BindingEnumeration object which has a list of name class pairs. Lists the current context if the name is empty.
name | JNDI Name |
---|
NamingException | all exceptions returned by lookup. |
---|
Returns a BindingEnumeration object which has a list of name object pairs. Lists the current context if the name is empty.
name | string |
---|
NamingException | all exceptions returned by lookup |
---|
Converts the "String" name into a CompositeName returns the object resolved by the COS Naming api, resolve. Returns the current context if the name is empty. Returns either an org.omg.CORBA.Object or javax.naming.Context object.
name | string used to resolve the object. |
---|
NamingException | See callResolve. |
---|
Converts the "Name" name into a NameComponent[] object and returns the object resolved by the COS Naming api, resolve. Returns the current context if the name is empty. Returns either an org.omg.CORBA.Object or javax.naming.Context object.
name | JNDI Name used to resolve the object. |
---|
NamingException | See callResolve. |
---|
Is mapped to resolve in the COS Naming api.
name | string |
---|
NamingException | See lookup. |
---|
Is mapped to resolve in the COS Naming api.
name | string |
---|
NamingException | See lookup. |
---|
Converts the "String" name into a CompositeName object and performs the rebind operation. Uses callBindOrRebind. Throws an invalid name exception if the name is an empty string.
name | string |
---|---|
obj | Object to be bound. |
NamingException | See callBindOrRebind |
---|
Converts the "Name" name into a NameComponent[] object and performs the rebind operation. Uses callBindOrRebind. Throws an invalid name exception if the name is empty. We must have a name to rebind the object to even if we are working within the current context.
name | string |
---|---|
obj | Object to be bound. |
NamingException | See callBindOrRebind |
---|
Removes an environment property from the environment of this context. See class description for more details on environment properties.
propName | the name of the environment property to remove; may not be null |
---|
NamingException |
---|
Renames an object. Since COS Naming does not support a rename api, this method unbinds the object with the "oldName" and creates a new binding.
oldName | string, existing name for the binding. |
---|---|
newName | string, name used to replace. |
NamingException | See bind |
---|
Renames an object. Since COS Naming does not support a rename api, this method unbinds the object with the "oldName" and creates a new binding.
oldName | JNDI Name, existing name for the binding. |
---|---|
newName | JNDI Name, name used to replace. |
NamingException | See bind |
---|
Converts the "Name" name into a NameComponent[] object and performs the unbind operation. Uses callUnbind. Throws an invalid name exception if the name is empty.
name | string |
---|
NamingException | See callUnbind |
---|
Converts the "String" name into a CompositeName object and performs the unbind operation. Uses callUnbind. If the name is empty, throws an invalid name exception. Do we unbind the current context (JNDI spec says work with the current context if the name is empty) ?
name | string |
---|
NamingException | See callUnbind |
---|
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
A subclass overrides the finalize
method to dispose of
system resources or to perform other cleanup.
The general contract of finalize is that it is invoked if and when the JavaTM virtual machine has determined that there is no longer any means by which this object can be accessed by any thread that has not yet died, except as a result of an action taken by the finalization of some other object or class which is ready to be finalized. The finalize method may take any action, including making this object available again to other threads; the usual purpose of finalize, however, is to perform cleanup actions before the object is irrevocably discarded. For example, the finalize method for an object that represents an input/output connection might perform explicit I/O transactions to break the connection before the object is permanently discarded.
The finalize method of class Object performs no special action; it simply returns normally. Subclasses of Object may override this definition.
The Java programming language does not guarantee which thread will invoke the finalize method for any given object. It is guaranteed, however, that the thread that invokes finalize will not be holding any user-visible synchronization locks when finalize is invoked. If an uncaught exception is thrown by the finalize method, the exception is ignored and finalization of that object terminates.
After the finalize method has been invoked for an object, no further action is taken until the Java virtual machine has again determined that there is no longer any means by which this object can be accessed by any thread that has not yet died, including possible actions by other objects or classes which are ready to be finalized, at which point the object may be discarded.
The finalize method is never invoked more than once by a Java virtual machine for any given object.
Any exception thrown by the finalize
method causes
the finalization of this object to be halted, but is otherwise
ignored.