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

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

public class BootstrapStateFactoryRegistry
extends java.lang.Object
implements StateFactoryRegistry

A bootstrap service implementation for a state factory registry.

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

Constructor Summary
BootstrapStateFactoryRegistry()
           
 
Method Summary
 ServerDirStateFactory getStateFactories(java.lang.Object obj)
          Gets the list of StateFactories associated with a class.
 void register(ServerDirStateFactory factory)
          Registers a server-side state factory with this registry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BootstrapStateFactoryRegistry

public BootstrapStateFactoryRegistry()
Method Detail

getStateFactories

public ServerDirStateFactory getStateFactories(java.lang.Object obj)
                                        throws javax.naming.NamingException
Description copied from interface: StateFactoryRegistry
Gets the list of StateFactories associated with a class. Several state factories may be associated with a class or interface depending on its ancestry. Also more specific factories may be registered for subclasses of the class. So a request for a general class may result in several factories which could persist the state of an object although more specifically.

Specified by:
getStateFactories in interface StateFactoryRegistry
Parameters:
obj - the object to be persisted by the factories
Returns:
the set of state factories which persist objects of the specified class
Throws:
javax.naming.NamingException

register

public void register(ServerDirStateFactory factory)
Description copied from interface: StateFactoryRegistry
Registers a server-side state factory with this registry.

Specified by:
register in interface StateFactoryRegistry
Parameters:
factory - the factory to register.