JNDI Object Factories
JNDI provides the notion of object factories, which makes dealing with LDAP information easier. As the name suggests, an object factory transforms directory information into meaningful objects for the application. For example, object factories can have a search operation return object instances like Patron or Employee instead of plain javax.naming.NamingEnumeration.