org.apache.directory.server.core.schema
Interface ObjectFactoryRegistry

All Known Implementing Classes:
BootstrapObjectFactoryRegistry

public interface ObjectFactoryRegistry

A registry used for looking up JNDI object factories based on meta data regarding the objectClass and Class associations with the object factory. Unlike other registries which often throw exceptions when they cannot find an object, this one does not. It returns null if an 'optional' object factory cannot be found.

Version:
$Rev: 434579 $
Author:
Apache Directory Project

Method Summary
 ServerDirObjectFactory getObjectFactories(javax.naming.ldap.LdapContext ctx)
          Gets the list of ObjectFactories associated with an entry.
 void register(ServerDirObjectFactory factory)
          Registers a server-side object factory with this registry.
 

Method Detail

getObjectFactories

ServerDirObjectFactory getObjectFactories(javax.naming.ldap.LdapContext ctx)
                                          throws javax.naming.NamingException
Gets the list of ObjectFactories associated with an entry. Several object factories could be associated with an entry due to the presence of auxiliary objectClasses.

Parameters:
ctx - the context of the entry
Returns:
the ObjectFactories that could be used for the entry
Throws:
javax.naming.NamingException

register

void register(ServerDirObjectFactory factory)
              throws javax.naming.NamingException
Registers a server-side object factory with this registry.

Parameters:
factory - the factory to register.
Throws:
javax.naming.NamingException


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.