org.apache.directory.server.core.schema.bootstrap
Class BootstrapObjectFactoryRegistry

java.lang.Object
  extended by org.apache.directory.server.core.schema.bootstrap.BootstrapObjectFactoryRegistry
All Implemented Interfaces:
ObjectFactoryRegistry

public class BootstrapObjectFactoryRegistry
extends java.lang.Object
implements ObjectFactoryRegistry

A boostrap service implementation for an ObjectFactoryRegistry.

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

Constructor Summary
BootstrapObjectFactoryRegistry(OidRegistry oidRegistry)
          Creates an ObjectFactoryRegistry that looks up an object factory to use.
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BootstrapObjectFactoryRegistry

public BootstrapObjectFactoryRegistry(OidRegistry oidRegistry)
Creates an ObjectFactoryRegistry that looks up an object factory to use.

Parameters:
oidRegistry - an object identifier registry
Method Detail

getObjectFactories

public ServerDirObjectFactory getObjectFactories(javax.naming.ldap.LdapContext ctx)
                                          throws javax.naming.NamingException
Description copied from interface: ObjectFactoryRegistry
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.

Specified by:
getObjectFactories in interface ObjectFactoryRegistry
Parameters:
ctx - the context of the entry
Returns:
the ObjectFactories that could be used for the entry
Throws:
javax.naming.NamingException

register

public void register(ServerDirObjectFactory factory)
              throws javax.naming.NamingException
Description copied from interface: ObjectFactoryRegistry
Registers a server-side object factory with this registry.

Specified by:
register in interface ObjectFactoryRegistry
Parameters:
factory - the factory to register.
Throws:
javax.naming.NamingException


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