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

All Known Implementing Classes:
BootstrapStateFactoryRegistry

public interface StateFactoryRegistry

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

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

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.
 

Method Detail

getStateFactories

ServerDirStateFactory getStateFactories(java.lang.Object obj)
                                        throws javax.naming.NamingException
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.

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

void register(ServerDirStateFactory factory)
Registers a server-side state factory with this registry.

Parameters:
factory - the factory to register.


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