- All Superinterfaces:
- DirStateFactory, StateFactory
public interface ServerDirStateFactory
extends DirStateFactory
A specialized StateFactory that is optimized for our server-side JNDI
provider. This factory reports the id of the objectClass that it
is associated with. This makes it easier for the server side provider to
find the required factory rather than attempt several others within the list
of state factories. JNDI SPI methods are inefficient since they are designed
to try all state factories to produce an object. Our provider looks up
the most specific state factories based on additional information. This
makes a huge difference when the number of StateFactories becomes large.
Eventually, it is highly feasible for generated schemas, to also include
state and object factories for various objectClasses. This means the number
of factories will increase. By associating object and state factories with
their respective objectClasses we can integrate this into the schema
subsystem making factory lookups extremely fast and efficient without costing
the user too much to create and store objects within the directory.
- Author:
- Apache Directory Project