public final class SimpleDirectoryServiceFactory extends Object implements org.apache.directory.server.core.factory.DirectoryServiceFactory
DirectoryServiceFactory which doesn't suffer from DIRSERVER-1504,
where the schema LDIF files can fail to be extracted when the java.class.path system property
is not set to a meaningful value.
It is basically a simplified version of DefaultDirectoryServiceFactory,
with a bunch of unnecessary configuration removed and custom handling for extracting schema
files from the classpath to work around DIRSERVER-1504. The custom logic is the method
extractSchemaResources(String), which uses Spring's resource utilities to load the LDIF
files from the classpath reliably.
| Constructor and Description |
|---|
SimpleDirectoryServiceFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.directory.server.core.DirectoryService |
getDirectoryService() |
org.apache.directory.server.core.factory.PartitionFactory |
getPartitionFactory() |
void |
init(String name) |
public void init(String name) throws Exception
init in interface org.apache.directory.server.core.factory.DirectoryServiceFactoryExceptionpublic org.apache.directory.server.core.DirectoryService getDirectoryService()
throws Exception
getDirectoryService in interface org.apache.directory.server.core.factory.DirectoryServiceFactoryExceptionCopyright © 2003–2018 Atlassian. All rights reserved.