public final class ServerAnnotationProcessor extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.apache.directory.server.ldap.replication.consumer.ReplicationConsumer |
createConsumer()
creates an LdapServer and starts before returning the instance, infering
the configuration from the Stack trace
|
static org.apache.directory.server.ldap.LdapServer |
createLdapServer(AnnotatedElement annotation,
org.apache.directory.server.core.api.DirectoryService directoryService)
Create a new instance of LdapServer
|
static org.apache.directory.server.ldap.LdapServer |
createLdapServer(CreateLdapServer createLdapServer,
org.apache.directory.server.core.api.DirectoryService directoryService)
creates an LdapServer and starts before returning the instance
|
static org.apache.directory.server.ldap.LdapServer |
getLdapServer(org.apache.directory.server.core.api.DirectoryService directoryService)
Returns an LdapServer instance and starts it before returning the instance, infering
the configuration from the Stack trace
|
static org.apache.directory.server.ldap.LdapServer |
instantiateLdapServer(CreateLdapServer createLdapServer,
org.apache.directory.server.core.api.DirectoryService directoryService)
Just gives an instance of
LdapServer without starting it. |
public static org.apache.directory.server.ldap.LdapServer instantiateLdapServer(CreateLdapServer createLdapServer, org.apache.directory.server.core.api.DirectoryService directoryService)
LdapServer without starting it.
For getting a running LdapServer instance see createLdapServer(CreateLdapServer, DirectoryService)createLdapServer - The LdapServer to createdirectoryService - the directory servicecreateLdapServer(CreateLdapServer, DirectoryService)public static org.apache.directory.server.ldap.LdapServer getLdapServer(org.apache.directory.server.core.api.DirectoryService directoryService) throws ClassNotFoundException
directoryService - the directory serviceClassNotFoundException - If the CreateLdapServer class cannot be loadedpublic static org.apache.directory.server.ldap.replication.consumer.ReplicationConsumer createConsumer() throws ClassNotFoundException
ClassNotFoundException - If the CreateConsumer class cannot be loadedpublic static org.apache.directory.server.ldap.LdapServer createLdapServer(CreateLdapServer createLdapServer, org.apache.directory.server.core.api.DirectoryService directoryService)
createLdapServer - the annotation containing the custom configurationdirectoryService - the directory servicepublic static org.apache.directory.server.ldap.LdapServer createLdapServer(AnnotatedElement annotation, org.apache.directory.server.core.api.DirectoryService directoryService)
description - A description for the created LdapServerdirectoryService - The associated DirectoryServiceCopyright © 2003–2023 The Apache Software Foundation. All rights reserved.