public class DefaultDirectoryServiceFactory extends Object implements DirectoryServiceFactory
Constructor and Description |
---|
DefaultDirectoryServiceFactory() |
DefaultDirectoryServiceFactory(DirectoryService directoryService,
PartitionFactory partitionFactory) |
Modifier and Type | Method and Description |
---|---|
DirectoryService |
getDirectoryService()
Gets the directory service.
|
PartitionFactory |
getPartitionFactory()
Gets the partition factory.
|
void |
init(String name)
Inits the directory service factory.
|
public DefaultDirectoryServiceFactory()
public DefaultDirectoryServiceFactory(DirectoryService directoryService, PartitionFactory partitionFactory)
public void init(String name) throws Exception
init
in interface DirectoryServiceFactory
name
- the nameException
- If the DirectoryService initialization failedpublic DirectoryService getDirectoryService() throws Exception
getDirectoryService
in interface DirectoryServiceFactory
Exception
- If the DirectoryService cannot be returnedpublic PartitionFactory getPartitionFactory() throws Exception
getPartitionFactory
in interface DirectoryServiceFactory
Factory
Exception
- If the partition cannot be createdCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.