[Top] [Prev] [Next] [Bottom]
 
 
Appendix C:  JNDI Change History
 
 JNDI 1.2: JNDI Changes Since JNDI 1.1
 
- Added javax.naming.eventpackage.
- Added javax.naming.ldappackage.
- Added support for configuration using resource files. See Chapter 6 of the JNDI API document.
 API-related Changes
 
- Added NamingEnumeration.close()for cancelling or terminating enumerations.
- Added ReferralException.getReferralContext(Hashtable env)andReferralException.retryReferral()to allow creation and retry of referral context with different environment properties.
- Clarified how context methods that accept Nameargument should deal withCompositeNameand nonCompositeNamearguments. Specifically, instances ofCompositeNameare treated as composite name, while al
l others are treated as compound name.
- Added Context.getNameInNamespace()for retrieving the full name of a context within its own namespace.
- Clarified definition of the class factory location of a Referenceobject. Specifically, the location is a codebase, which consists of a list space-separated URLs.
- Added support for ordered multivalued attributes to AttributeandBasicAttribute.
- Added BasicAttributes.equals()andBasicAttributes.hashCode().
- Redefined semantics of DirContext.getSchemaClassDefinition()so that it returns a context that contains theDirContextobjects of class definitions, rather than returning one (arbitrary) class definition.
- Added protected InitialContext/InitialDirContextconstructors to allow lazy initialization. Useful for subclass implementations.
 SPI-related Changes
 
- Added StateFactory/NamingManager.getStateToBind(), analogous toObjectFactory/NamingManager.getObjectInstance(), for transforming an object's state before the object is bound in the naming/directory 
service.
- Added interfaces DirObjectFactoryandDirStateFactoryto better support service providers that implement theDirContextinterface. AddedDirectoryManager.getObjectInstance()andDirectoryManager.getStateToStore()to use these interfaces.
- Refined definition of NamingManager.getObjectInstance()to not treat URL strings specially. Instead, the URL should be wrapped inside aReferencewhoseRefAddrtype is "URL".
- Made ResolveResultimplementSerializable.
- Defined a special form of Referencecalled a next naming system (nns) reference for supporting "dynamic federation". This reference has aRefAddrtype of "nns" and a content consisting of the resolved object.
- Added the string constant NamingManager.CPEwhich names a property set byNamingManager.getContinuationContext()/DirectoryManager.getContinuationContext(). The value of this property is an instance ofCannotProceedException. 
This is useful to service providers that implement federation by chaining the CPEs.
- Defined a convention for service providers to use when naming environment properties. See Section 6.1.
 
[Top] [Prev] [Next] [Bottom]
jndi@java.sun.com
Copyright © 1999, Sun Microsystems, Inc.   All rights
reserved.